vsphere-automation-sdk-python icon indicating copy to clipboard operation
vsphere-automation-sdk-python copied to clipboard

Fix argument handling

Open rsommer opened this issue 1 year ago • 1 comments

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 avatar Dec 21 '23 12:12 rsommer

@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.

vmwclabot avatar Dec 21 '23 12:12 vmwclabot