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

Respect gcloud analytics opt-out #581

Closed
bootstraponline opened this issue Jul 26, 2019 · 0 comments · Fixed by #678
Closed

Respect gcloud analytics opt-out #581

bootstraponline opened this issue Jul 26, 2019 · 0 comments · Fixed by #678
Assignees
Labels
Milestone

Comments

@bootstraponline
Copy link
Contributor

If a user has opted out of gcloud analytics, disable reporting bugs to bugsnag.

_UUID_FILE_PATH = os.path.expanduser(os.path.join('~',
                                                  '.gsutil/analytics-uuid'))
# If this string is written to analytics-uuid, that means that the user said
# 'no' to analytics, and it should thus be disabled.
_DISABLED_TEXT = 'DISABLED'

https://github.com/bootstraponline/gcloud_cli/blob/41b4d3438d5a8e215912897d2aa615fd8d509e0d/google-cloud-sdk/platform/gsutil/gslib/metrics.py#L55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants