-
Notifications
You must be signed in to change notification settings - Fork 371
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
Adding telemetry for logrotate #2045
Adding telemetry for logrotate #2045
Conversation
azurelinuxagent/common/version.py
Outdated
@@ -176,6 +176,20 @@ def get_lis_version(): | |||
# imported in this module or we'd log this too. | |||
return "Failed" | |||
|
|||
def has_logrotate(): | |||
""" |
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.
Remove empty quotes or add comment?
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.
+1
azurelinuxagent/common/version.py
Outdated
except shellutil.CommandError: | ||
# A non-zero return code means that logrotate isn't present on | ||
# the system; --version shouldn't fail otherwise. | ||
return "Absent" |
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.
Define constants for this and use it here (and in the get_lis_version
function above)?
azurelinuxagent/common/version.py
Outdated
# the system; --version shouldn't fail otherwise. | ||
return "Absent" | ||
except Exception: | ||
return "Failed" |
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.
Same
Description
Adding a line to the osinfo telemetry specifying whether or not the VM has logrotoate.
PR information
Quality of Code and Contribution Guidelines