Skip to content

Commit

Permalink
remove meta key if exists for compare
Browse files Browse the repository at this point in the history
  • Loading branch information
CWollinger authored and rrey committed Mar 30, 2020
1 parent bbfce99 commit bb09a2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/modules/grafana_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,11 @@ def grafana_dashboard_changed(payload, dashboard):
if 'version' in dashboard['dashboard']:
del(dashboard['dashboard']['version'])

# the meta key is not part of the 'payload' ever
# remove meta key if exists for compare
if 'meta' in dashboard:
del(dashboard['meta'])
if 'meta' in payload:
del(payload['meta'])

# if folderId is not provided in dashboard, set default folderId
if 'folderId' not in dashboard:
Expand Down

0 comments on commit bb09a2e

Please sign in to comment.