-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fix virt.get_hypervisor() #55351
Fix virt.get_hypervisor() #55351
Conversation
Even for a simple change like moving a parenthesis a unit test is necessary so that we don't have regressions. I can help whip that up when I'm done triaging for the day 👍 |
virt.get_hypervisor resulted in: AttributeError: module 'salt.loader.dev-srv.tf.local.int.module.virt' has no attribute '_is_{}_hyper' This was due to missplaced parenthese.
93d58c2
to
1d3f7d6
Compare
Done... not sure the test is super useful though ;) |
Thank you so much! |
re-run full macosxmojave |
re-run full amazon1 |
re-run full tornado |
What does this PR do?
virt.get_hypervisor resulted in:
This was due to missplaced parenthese.
What issues does this PR fix or reference?
No issue filed for this yet.
Previous Behavior
calling
virt.get_hypervisor
was throwing the error:New Behavior
calling
virt.get_hypervisor
now returns the actual valueTests written?
No - would require to abstract the
virt._is_*_hyper
functions and thus only test one line of rather simple code... even though that one contained a misplaced parenthese.Commits signed with GPG?
Yes