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

pyVMC config show / build fails if config.ini entries are incorrect #221

Open fr0gger03 opened 11 months ago

fr0gger03 commented 11 months ago

Describe the bug

If using either of the following commands, user receives 400 error if config.ini is incorrect:

pyVMC.py config show
pyVMC.py config build

Reproduction steps

  1. alter config.ini to contain incorrect values for refresh token, ORG ID, or SDDC ID 2.run either command:
    
    pyVMC.py config show
    pyVMC.py config build

3. user will receive 400 error and program will exit
...

### Expected behavior

As these commands are intended to help the user troubleshoot / build a new config file, these commands should bypass the retrieval of the access token, and simply execute.

### Additional context

_No response_