Skip to content

Add --no-warn-on-updates option#408

Open
KAMI911 wants to merge 2 commits into
HariSekhon:masterfrom
KAMI911:master
Open

Add --no-warn-on-updates option#408
KAMI911 wants to merge 2 commits into
HariSekhon:masterfrom
KAMI911:master

Conversation

@KAMI911

@KAMI911 KAMI911 commented Sep 7, 2023

Copy link
Copy Markdown

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.

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.
Comment thread check_yum.py
+ "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.")

Copy link
Copy Markdown

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

Comment thread check_yum.py
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" \

Copy link
Copy Markdown

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

Comment thread check_yum.py
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" \

Copy link
Copy Markdown

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

Comment thread check_yum.py
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" \

Copy link
Copy Markdown

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

Comment thread check_yum.py
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" \

Copy link
Copy Markdown

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

Comment thread check_yum.py

parser.add_option("--no-warn-on-updates",
action="store_true",
dest="no_warn_on_updates",

Copy link
Copy Markdown

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

Comment thread check_yum.py
+ "yum for package management")

parser.add_option("--no-warn-on-updates",
action="store_true",

Copy link
Copy Markdown

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

@sonarqubecloud

sonarqubecloud Bot commented Sep 7, 2023

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@KAMI911

KAMI911 commented Sep 21, 2023

Copy link
Copy Markdown
Author

I'll fix these.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant