]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commitdiff
ceph-grafana: Use ansible's to_json filter
authorZack Cerza <zack@redhat.com>
Fri, 13 Apr 2018 22:43:17 +0000 (16:43 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 17 Apr 2018 19:21:55 +0000 (13:21 -0600)
'tojson' is part of jinja2 2.9, which isn't in RHEL.

Signed-off-by: Zack Cerza <zack@redhat.com>
ansible/roles/ceph-grafana/tasks/push_dashboards.yml

index 545032c1e428a812b89297fc056ca8456611a878..8a691bd7dc86ec5e5eb416ffcc755970e1073b01 100644 (file)
@@ -63,5 +63,5 @@
     force_basic_auth: yes
     status_code: 200
     body_format: json
-    body: '{"dashboard": {{ dashboards[item].body|tojson }}, "overwrite": true}'
+    body: '{"dashboard": {{ dashboards[item].body|to_json }}, "overwrite": true}'
   with_items: "{{ dashboards.keys() }}"