vsphere-automation-sdk-python
vsphere-automation-sdk-python copied to clipboard
Fix argument handling
The key part of the argument handling has to be right after args, otherwise you'd get an AttributeError when trying to call encode on the args object.
Traceback (most recent call last):
File "/tmp/tmp.VR4pSjeDta/vsphere-automation-sdk-python/samples/vsphere/vcenter/certificatemanagement/replace_tls_certificate.py", line 63, in <module>
key = args.encode(encoding='utf-8').key.decode('unicode_escape')
AttributeError: 'Namespace' object has no attribute 'encode'
@rsommer, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <[email protected]> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.
- Commit adfb526681600e71a06a0e66d84c5dd1d2307934 must be signed by [email protected]