Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFE] More Useful Logging Return for VSC #455

Open
sadsfae opened this issue Sep 18, 2023 · 0 comments
Open

[RFE] More Useful Logging Return for VSC #455

sadsfae opened this issue Sep 18, 2023 · 0 comments

Comments

@sadsfae
Copy link
Member

sadsfae commented Sep 18, 2023

For the VSC tool if there are no clouds in a defined cloud it will give an error (which it should) but I think it should be more informative.

[root@quads ~]# /opt/quads/quads/tools/verify_switchconf.py --cloud cloud21
Traceback (most recent call last):
  File "/opt/quads/quads/tools/verify_switchconf.py", line 157, in <module>
    verify(args.cloud, args.host, args.change)
  File "/opt/quads/quads/tools/verify_switchconf.py", line 34, in verify
    if _cloud_obj != first_host.cloud:
AttributeError: 'NoneType' object has no attribute 'cloud'

Instead we might say something like `This environment currently has no active hosts" or similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To do
Development

No branches or pull requests

1 participant