summaryrefslogtreecommitdiffstats
path: root/roles/openshift_logging/tasks/stop_cluster.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/openshift_logging/tasks/stop_cluster.yaml')
-rw-r--r--roles/openshift_logging/tasks/stop_cluster.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_logging/tasks/stop_cluster.yaml b/roles/openshift_logging/tasks/stop_cluster.yaml
index c078e4b2f..f4b419d84 100644
--- a/roles/openshift_logging/tasks/stop_cluster.yaml
+++ b/roles/openshift_logging/tasks/stop_cluster.yaml
@@ -36,7 +36,7 @@
name: "{{ object }}"
namespace: "{{openshift_logging_namespace}}"
replicas: 0
- with_items: "{{ mux_dc.results.results[0]['items'] if 'results' in mux_dc else {} | map(attribute='metadata.name') | list }}"
+ with_items: "{{ mux_dc.results.results[0]['items'] | map(attribute='metadata.name') | list if 'results' in mux_dc else [] }}"
loop_control:
loop_var: object
when: openshift_logging_use_mux