summaryrefslogtreecommitdiffstats
path: root/roles/openshift_logging_fluentd
diff options
context:
space:
mode:
authorVadim Rutkovsky <vrutkovs@redhat.com>2018-01-10 10:18:59 +0100
committerVadim Rutkovsky <vrutkovs@redhat.com>2018-01-10 10:52:00 +0100
commitd07d3d922cec9e88fe16d4392c738ec7e3e1f82e (patch)
tree5f4beb91c7f1ba517f8de9cde76e696b98ff4083 /roles/openshift_logging_fluentd
parent4a3786539efad2ad41733ab521fc2e8e1ab87d9c (diff)
downloadopenshift-d07d3d922cec9e88fe16d4392c738ec7e3e1f82e.tar.gz
openshift-d07d3d922cec9e88fe16d4392c738ec7e3e1f82e.tar.bz2
openshift-d07d3d922cec9e88fe16d4392c738ec7e3e1f82e.tar.xz
openshift-d07d3d922cec9e88fe16d4392c738ec7e3e1f82e.zip
logging: fix jinja filters to support py3
Since py3 returns `dict_items` for dict.keys() call instead of a list, it should be converted into a list for compatibility Signed-off-by: Vadim Rutkovsky <vrutkovs@redhat.com>
Diffstat (limited to 'roles/openshift_logging_fluentd')
-rw-r--r--roles/openshift_logging_fluentd/tasks/main.yaml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/openshift_logging_fluentd/tasks/main.yaml b/roles/openshift_logging_fluentd/tasks/main.yaml
index 529859983..79ebbca08 100644
--- a/roles/openshift_logging_fluentd/tasks/main.yaml
+++ b/roles/openshift_logging_fluentd/tasks/main.yaml
@@ -172,8 +172,8 @@
app_port: "{{ openshift_logging_fluentd_app_port }}"
ops_host: "{{ openshift_logging_fluentd_ops_host }}"
ops_port: "{{ openshift_logging_fluentd_ops_port }}"
- fluentd_nodeselector_key: "{{ openshift_logging_fluentd_nodeselector.keys()[0] }}"
- fluentd_nodeselector_value: "{{ openshift_logging_fluentd_nodeselector.values()[0] }}"
+ fluentd_nodeselector_key: "{{ openshift_logging_fluentd_nodeselector.keys() | first }}"
+ fluentd_nodeselector_value: "{{ openshift_logging_fluentd_nodeselector.values() | first }}"
fluentd_cpu_limit: "{{ openshift_logging_fluentd_cpu_limit }}"
fluentd_cpu_request: "{{ openshift_logging_fluentd_cpu_request | min_cpu(openshift_logging_fluentd_cpu_limit | default(none)) }}"
fluentd_memory_limit: "{{ openshift_logging_fluentd_memory_limit }}"