Skip to content
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

Merged
merged 5 commits into from
Oct 22, 2020

Conversation

kevinclark19a
Copy link
Contributor

Description

Adding a line to the osinfo telemetry specifying whether or not the VM has logrotoate.


PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which has an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
  • If applicable, the PR references the bug/issue that it fixes in the description.
  • New Unit tests were added for the changes made and Travis.CI is passing.

Quality of Code and Contribution Guidelines

@@ -176,6 +176,20 @@ def get_lis_version():
# imported in this module or we'd log this too.
return "Failed"

def has_logrotate():
"""
Copy link
Contributor

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

pgombar
pgombar previously approved these changes Oct 20, 2020
except shellutil.CommandError:
# A non-zero return code means that logrotate isn't present on
# the system; --version shouldn't fail otherwise.
return "Absent"
Copy link
Contributor

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)?

# the system; --version shouldn't fail otherwise.
return "Absent"
except Exception:
return "Failed"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

@kevinclark19a kevinclark19a merged commit 195b133 into Azure:develop Oct 22, 2020
@kevinclark19a kevinclark19a deleted the logrotateTelemetry branch January 6, 2021 22:23
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.

4 participants