Skip to content

Commit

Permalink
fix: remove type from diff if postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemental committed Apr 30, 2024
1 parent 4088424 commit d150a61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/modules/grafana_datasource.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,9 @@ def compare_datasources(new, current, compareSecureData=True):
del current["password"]
if "basicAuthPassword" in current:
del current["basicAuthPassword"]
if current["type"] == "grafana-postgresql-datasource" and new["type"] == "postgres":
del current["type"]
del new["type"]

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

0 comments on commit d150a61

Please sign in to comment.