Skip to content

Commit

Permalink
Fixed ValueError when auth not properly configured (#174)
Browse files Browse the repository at this point in the history
Co-authored-by: Aaron Johnson <[email protected]>
  • Loading branch information
acjohnson and Aaron Johnson authored Feb 1, 2022
1 parent ea824c9 commit 42063c7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

# [1.2.3] - 2022-01-30

### Added

### Changed
- #174 Fixed ValueError when auth not properly configured

### Removed

# [1.2.2] - 2021-11-30

### Added

### Changed
Expand Down
4 changes: 2 additions & 2 deletions grafana_backup/api_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ def main(settings):

(status, json_resp) = health_check(grafana_url, http_get_headers, verify_ssl, client_cert, debug)
if not status == 200:
return (status, json_resp, None, None)
return (status, json_resp, None, None, None)

(status, json_resp) = auth_check(grafana_url, http_get_headers, verify_ssl, client_cert, debug)
if not status == 200:
return (status, json_resp, None, None)
return (status, json_resp, None, None, None)

dashboard_uid_support, datasource_uid_support = uid_feature_check(grafana_url, http_get_headers, verify_ssl, client_cert, debug)
if isinstance(dashboard_uid_support, str):
Expand Down
2 changes: 1 addition & 1 deletion grafana_backup/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
homedir = os.environ["HOME"]

PKG_NAME = "grafana-backup"
PKG_VERSION = "1.2.2"
PKG_VERSION = "1.2.3"
JSON_CONFIG_PATH = "{0}/.grafana-backup.json".format(homedir)

0 comments on commit 42063c7

Please sign in to comment.