diff options
author | Wesley Hearn <whearn@redhat.com> | 2015-08-14 14:47:15 -0400 |
---|---|---|
committer | Wesley Hearn <whearn@redhat.com> | 2015-08-14 14:47:15 -0400 |
commit | a82ae49cdf7b44b74da9f19cac313f496cfe4e04 (patch) | |
tree | 09a4454d1fde68b4e09645ab3c75705df3fb1443 /roles | |
parent | 416866bc973f1b9549d8e3eafb7a0474a9d81b90 (diff) | |
download | openshift-a82ae49cdf7b44b74da9f19cac313f496cfe4e04.tar.gz openshift-a82ae49cdf7b44b74da9f19cac313f496cfe4e04.tar.bz2 openshift-a82ae49cdf7b44b74da9f19cac313f496cfe4e04.tar.xz openshift-a82ae49cdf7b44b74da9f19cac313f496cfe4e04.zip |
Skip node label if labels are empty
Diffstat (limited to 'roles')
-rw-r--r-- | roles/openshift_manage_node/tasks/main.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_manage_node/tasks/main.yml b/roles/openshift_manage_node/tasks/main.yml index cbf1c667f..74e702248 100644 --- a/roles/openshift_manage_node/tasks/main.yml +++ b/roles/openshift_manage_node/tasks/main.yml @@ -22,4 +22,4 @@ {{ openshift.common.client_binary }} label --overwrite node {{ item.openshift.common.hostname }} {{ item.openshift.node.labels | oo_combine_dict }} with_items: - "{{ openshift_node_vars }}" - when: "'labels' in item.openshift.node" + when: "'labels' in item.openshift.node and item.openshift.node.labels != {}" |