-
Notifications
You must be signed in to change notification settings - Fork 277
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
hide_version-config: add version as config/env var #226
Conversation
- within the grafana-config the version can be hidden - as a fall back the version can be provided - in the config-file - as environment variable Fixes: #225
hi @ysde
As far as I understand, your github-actions will not run through with python v2.7 |
grafana_backup/create_alert_rule.py
Outdated
grafana_version = get_grafana_version(grafana_url, verify_ssl) | ||
except KeyError as error: | ||
if not grafana_version: | ||
raise Exception("Grafana version is not set via the config-file or provided as environment variable. Nor is it available via the api.") from error |
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.
Can you have this say simply Grafana version is not set.
?
grafana_backup/save_alert_rules.py
Outdated
grafana_version = get_grafana_version(grafana_url, verify_ssl) | ||
except KeyError as error: | ||
if not grafana_version: | ||
raise Exception("Grafana version is not set via the config-file or provided as environment variable. Nor is it available via the api.") from error |
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.
Can you have this say simply Grafana version is not set.
?
- to address review comment by @acjohnson
Note: I messed up our branch and by fixing it, github decided to close the original pull request: #226 Sorry for that. |
Fixes: #225