vmware / python-client-for-vmware-cloud-on-aws

Python Client for VMware Cloud on AWS is an open-source Python-based tool. Written in Python, the tool enables VMware Cloud on AWS users to automate the consumption of their VMware Cloud on AWS SDDC.
Other
23 stars 20 forks source link

get_task_status reports failed task even if successful #153

Closed fr0gger03 closed 1 year ago

fr0gger03 commented 1 year ago

Describe the bug

When calling get_task_status upon creating SDDC Group, code returns failure even if task is successful:

Task FAILED 
error message: Internal service failed to execute operation
error code: internal.server.error
Internal error message: 400 : "{"timestamp":"2023-03-03T13:08:34.818+00:00","status":400,"statusCode":400,"error":"Bad Request","errorCode":90001,"message":"Found no members to update. Please include at least one member to update","referenceId":null,"path":"/api/network/2e7fa...

Reproduction steps

  1. Create a new SDDC group - "./pyVMC.py vtc create-sddc-group -desc toms-sddc-group2 -n toms-sddc-group2"

Expected behavior

Task status should output progress bar and report success once complete.

Additional context

You can avoid by adding -nowait