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

hide_version-config: add version as config/env var #226

Closed
wants to merge 4 commits into from
Closed

hide_version-config: add version as config/env var #226

wants to merge 4 commits into from

Conversation

chriz-active
Copy link
Contributor

  • 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

- 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
@chriz-active
Copy link
Contributor Author

hi @ysde
are you planning to fix the following issue:

Run actions/setup-python@v2
Warning: The support for python 2.7 will be removed on June 19. Related issue: https://github.com/actions/setup-python/issues/672
Version 2.7 was not found in the local cache
Error: Version 2.7 with arch x64 not found
The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json

As far as I understand, your github-actions will not run through with python v2.7
Do you still want to test for python2.7?

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
Copy link
Collaborator

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_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
Copy link
Collaborator

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

@chriz-active
Copy link
Contributor Author

Note: I messed up our branch and by fixing it, github decided to close the original pull request: #226

Sorry for that.

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.

tool fails when grafana-config hide_version is set
2 participants