-
Notifications
You must be signed in to change notification settings - Fork 506
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 --no-warn-on-updates option #408
base: master
Are you sure you want to change the base?
Conversation
Add "--no-warn-on-updates" option, that returns OK instead of WARNING even when updates are available. This is not recommended from the security standpoint, but may be wanted to disable alerts while the plugin output still shows the number of available updates.
+ "available. This is not recommended from the security" \ | ||
+ "standpoint, but may be wanted to disable alerts while" \ | ||
+ "the plugin output still shows the number of available" \ | ||
+ "updates.") |
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.
continuation line under-indented for visual indent
indentation contains mixed spaces and tabs
indentation contains tabs
help="Return OK instead of WARNING even when updates are" \ | ||
+ "available. This is not recommended from the security" \ | ||
+ "standpoint, but may be wanted to disable alerts while" \ | ||
+ "the plugin output still shows the number of available" \ |
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.
continuation line under-indented for visual indent
indentation contains mixed spaces and tabs
indentation contains tabs
the backslash is redundant between brackets
dest="no_warn_on_updates", | ||
help="Return OK instead of WARNING even when updates are" \ | ||
+ "available. This is not recommended from the security" \ | ||
+ "standpoint, but may be wanted to disable alerts while" \ |
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.
continuation line under-indented for visual indent
indentation contains mixed spaces and tabs
indentation contains tabs
the backslash is redundant between brackets
action="store_true", | ||
dest="no_warn_on_updates", | ||
help="Return OK instead of WARNING even when updates are" \ | ||
+ "available. This is not recommended from the security" \ |
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.
continuation line under-indented for visual indent
indentation contains mixed spaces and tabs
indentation contains tabs
the backslash is redundant between brackets
parser.add_option("--no-warn-on-updates", | ||
action="store_true", | ||
dest="no_warn_on_updates", | ||
help="Return OK instead of WARNING even when updates are" \ |
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.
indentation contains mixed spaces and tabs
line too long (81 > 79 characters)
the backslash is redundant between brackets
@@ -684,6 +694,15 @@ def main(): | |||
+ "intermittently pop up when someone is running " \ | |||
+ "yum for package management") | |||
|
|||
parser.add_option("--no-warn-on-updates", | |||
action="store_true", | |||
dest="no_warn_on_updates", |
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.
continuation line under-indented for visual indent
indentation contains mixed spaces and tabs
indentation contains tabs
@@ -684,6 +694,15 @@ def main(): | |||
+ "intermittently pop up when someone is running " \ | |||
+ "yum for package management") | |||
|
|||
parser.add_option("--no-warn-on-updates", | |||
action="store_true", |
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.
continuation line under-indented for visual indent
indentation contains mixed spaces and tabs
indentation contains tabs
Kudos, SonarCloud Quality Gate passed! |
I'll fix these. |
This settings will return OK instead of WARNING even when updates are available. This is not recommended from the security standpoint, but may be wanted to disable alerts while the plugin output still shows the number of available updates.