From bb09a2e1d8d9f5c47afd2e26854a8883cbe916fd Mon Sep 17 00:00:00 2001 From: CWollinger Date: Mon, 30 Mar 2020 22:01:50 +0200 Subject: [PATCH] remove meta key if exists for compare --- plugins/modules/grafana_dashboard.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/modules/grafana_dashboard.py b/plugins/modules/grafana_dashboard.py index a521038e..52ac52f1 100644 --- a/plugins/modules/grafana_dashboard.py +++ b/plugins/modules/grafana_dashboard.py @@ -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: