Browse Source

Merge pull request #10124 from vrutkovs/sync-ds-filter-fix

Simplify match filter when looking for sync annotations
OpenShift Merge Robot 6 years ago
parent
commit
1d3bd3d363

+ 1 - 1
roles/openshift_manage_node/tasks/config.yml

@@ -22,7 +22,7 @@
     - node_status.results.results | length > 0
     - node_status.results.results[0]['items']
         | map(attribute='metadata.annotations') | map('list') | flatten
-        | select('match', '[\"node.openshift.io/md5sum\"]') | list | length ==
+        | select('match', 'node.openshift.io/md5sum') | list | length ==
       node_status.results.results[0]['items'] | length
   retries: 60
   delay: 10

+ 1 - 1
roles/openshift_node_group/tasks/sync.yml

@@ -84,7 +84,7 @@
     - node_status.results.results | length > 0
     - node_status.results.results[0]['items']
         | map(attribute='metadata.annotations') | map('list') | flatten
-        | select('match', '[\"node.openshift.io/md5sum\"]') | list | length ==
+        | select('match', 'node.openshift.io/md5sum') | list | length ==
       node_status.results.results[0]['items'] | length
   retries: 60
   delay: 10