Browse Source

Simplify match filter when looking for sync annotations

The filter uses the search string as a regex, so it may match other 
annotations
Vadim Rutkovsky 6 years ago
parent
commit
66aca9c39f

+ 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