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.
When trying to delete an additional T1 gateway, there is no validation of the name provided. The code should throw an error if the name given doesn't exist. If a customer fat-fingers the network name and expects it to be deleted, they'll think it was because the CLI will exit successfully.
Reproduction steps
"./pyVMC.py t1 delete -n <network name that doesn't exist>"
This will result in "Tier1 gateway <network name that doesn't exist> has been deleted."
Expected behavior
It should throw an error stating " does not exist".
Describe the bug
When trying to delete an additional T1 gateway, there is no validation of the name provided. The code should throw an error if the name given doesn't exist. If a customer fat-fingers the network name and expects it to be deleted, they'll think it was because the CLI will exit successfully.
Reproduction steps
Expected behavior
It should throw an error stating " does not exist".
Additional context
No response