Skip to content

Commit

Permalink
Fix grafana_datasource issue with Grafana >=9.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kongslund authored Jun 16, 2022
1 parent a820865 commit 4230913
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugins/modules/grafana_datasource.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,10 @@ def compare_datasources(new, current, compareSecureData=True):
del current['readOnly']
if current['basicAuth'] is False:
del current['basicAuthUser']
del current['password']
del current['basicAuthPassword']
if 'password' in current:
del current['password']
if 'basicAuthPassword' in current:
del current['basicAuthPassword']

# check if secureJsonData should be compared
if not compareSecureData:
Expand Down

0 comments on commit 4230913

Please sign in to comment.