-
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
Add deprecation warning path for glance state and execution module #55592
Conversation
@@ -104,7 +104,7 @@ def _auth(profile=None, api_version=2, **connection_args): | |||
Only intended to be used within glance-enabled modules | |||
''' | |||
__utils__['versions.warn_until']( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this is not your change but why are we preferring __utils__
instead of the direct function call?
You know the reason behind that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally I thought we always preferred __utils__
where possible since its packed in via the loader instead of importing directly. Is there a reason not to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guess there really isn't a reason, I apparently just dislike it's usage, seems like mixing loader stuff with regular utils modules, but it's just my personal preference.
Codecov Report
@@ Coverage Diff @@
## master #55592 +/- ##
==========================================
- Coverage 39.58% 38.17% -1.41%
==========================================
Files 1484 1463 -21
Lines 265124 259754 -5370
Branches 57299 54886 -2413
==========================================
- Hits 104924 99134 -5790
- Misses 148015 149368 +1353
+ Partials 12185 11252 -933
|
What does this PR do?
Add deprecation warning path for glance state and execution module
What issues does this PR fix or reference?
#49414
Previous Behavior
glance module was set to be deprecated in the neon release
New Behavior
glance module will not be deprecated till the Aluminium release. This is because the glance state module which uses the glance module was never set on a deprecation path. So both the glance execution and state modules are set for deprecation in Aluminium.
Tests written?
No - adding deprecation warning
Commits signed with GPG?
Yes