-
Notifications
You must be signed in to change notification settings - Fork 186
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: add deprecated warning message in insights.combiners.mounts #3613
Conversation
insights/combiners/mounts.py
Outdated
@@ -42,6 +43,7 @@ class Mounts(object): | |||
""" | |||
|
|||
def __init__(self, binmount, procmounts, mountinfo): | |||
deprecated(Mounts, "Use the parsers in insights.mount module instead", "3.1.0") |
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.
@chenlizhong Please make it 3.1.25
which means we can remove it after the release of 3.2.0
which is roughly six months from now.
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.
Updated
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.
It's also recommended to add related warning
s to the docstring of the combiner when deprecating it.
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.
Good to me. But TBH, a Wanning
would be better than a Note
in the doc.
* fix: add deprecated warning message in insights.combiners.mounts Signed-off-by: Chen lizhong <[email protected]> * fix: update version to 3.1.25 Signed-off-by: Chen lizhong <[email protected]> * docs: add deprecated info into doc string Signed-off-by: Chen lizhong <[email protected]> * docs: use warning instead of note Signed-off-by: Chen lizhong <[email protected]> (cherry picked from commit c79bf52)
* fix: add deprecated warning message in insights.combiners.mounts Signed-off-by: Chen lizhong <[email protected]> * fix: update version to 3.1.25 Signed-off-by: Chen lizhong <[email protected]> * docs: add deprecated info into doc string Signed-off-by: Chen lizhong <[email protected]> * docs: use warning instead of note Signed-off-by: Chen lizhong <[email protected]>
Signed-off-by: Chen lizhong [email protected]
All Pull Requests:
Check all that apply:
Complete Description of Additions/Changes:
Before remove the combiner.mounts, give deprecate warning by this MR.
#3606