Skip to content

Commit 1dc99ec

Browse files
committed
Syntax
1 parent 9932fe6 commit 1dc99ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

playbooks/delius_oem_metrics_setup/delius_oem_metrics_setup/tasks/modify_metric_thresholds.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
echo "Setting scheduler state for {{ item.1.target_type }} {{ item.0.target_name }} {{ item.1.collection_name }}"
7070
{{ emcli }} modify_collection_schedule -targetNames={{ item.0.target_name }} -targetType={{ item.1.target_type }} \
7171
-collectionName={{ item.1.collection_name }} \
72-
'-collectionStatus=' + item.1.collection_attribute_value \
72+
-collectionStatus={{ item.1.collection_attribute_value }} \
7373
-preview=N -force
7474
loop: "{{ oem_targets | product(( all_oem_metrics | flatten_emcli_metrics('schedule') ) + ( host_oem_metrics | flatten_emcli_metrics('schedule') )) }}"
7575
when:
@@ -92,8 +92,8 @@
9292
echo "Setting scheduler frequency for {{ item.1.target_type }} {{ item.0.target_name }} {{ item.1.collection_name }}"
9393
{{ emcli }} modify_collection_schedule -targetNames={{ item.0.target_name }} -targetType={{ item.1.target_type }} \
9494
-collectionName={{ item.1.collection_name }} \
95-
-freqType=' + item.1.collection_attribute_value.split(' ')[1] \
96-
-freqValue=' + item.1.collection_attribute_value.split(' ')[0] \
95+
-freqType={{ item.1.collection_attribute_value.split(' ')[1] }}\
96+
-freqValue={{ item.1.collection_attribute_value.split(' ')[0] }}\
9797
-preview=N -force
9898
loop: "{{ oem_targets | product(( all_oem_metrics | flatten_emcli_metrics('schedule') ) + ( host_oem_metrics | flatten_emcli_metrics('schedule') )) }}"
9999
when:

0 commit comments

Comments
 (0)