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
24 stars 20 forks source link

vtc get-group-info does not return valid group id #180

Closed mithil2906 closed 1 year ago

mithil2906 commented 1 year ago

Describe the bug

mypc@b0be83701edd python-client-for-vmware-cloud-on-aws-development % ./pyVMc.py vtc get-group-info SDDC Groups in Org: 5c903e4f-d2e0-469e-8de5-05829cefcaf2: Traceback (most recent call last): File "/Users/mithilra/pyvmc/python-client-for-vmware-cloud-on-aws-development/./pyVMc.py", line 1409, in main() File "/Users/mithilra/pyvmc/python-client-for-vmware-cloud-on-aws-development/./pyVMc.py", line 1404, in main args.func(**params) File "/Users/mithilra/pyvmc/python-client-for-vmware-cloud-on-aws-development/pyvmc_fxns.py", line 1382, in get_sddc_groups group_table.add_row([row['id'],row['name'],row['description'], KeyError: 'description'

mithilra@b0be83701edd python-client-for-vmware-cloud-on-aws-development % ./pyVMc.py vtc get-group-info -h usage: vtc get-group-info [-h] [--oauth [OAUTH]]

options: -h, --help show this help message and exit --oauth [OAUTH] Used to specify use of OAuth app ID and secret in config.ini instead of 'refresh_token' (default)

Reproduction steps

execute " ./pyVMc.py vtc get-group-info " with all the required parameters such as sddc id, org id and refresh token in the config.ini file

Expected behavior

./pyVMc.py vtc get-group-info should return the group information with its id

Additional context

This out helps further in executing ./pyVMc.py vtc attach-sddc -sid -gid