summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorDiego Castro <spinolacastro@gmail.com>2015-08-10 11:50:57 -0300
committerDiego Castro <spinolacastro@gmail.com>2015-08-10 11:50:57 -0300
commit9a41d23f553ab638af22f54fbd30c4de3b0eae18 (patch)
tree152de3a733137885777109c00c2552dd9cc7c449 /roles
parentc17efa0172a11f79cb28d3c5740b7c16ed70c3b8 (diff)
downloadopenshift-9a41d23f553ab638af22f54fbd30c4de3b0eae18.tar.gz
openshift-9a41d23f553ab638af22f54fbd30c4de3b0eae18.tar.bz2
openshift-9a41d23f553ab638af22f54fbd30c4de3b0eae18.tar.xz
openshift-9a41d23f553ab638af22f54fbd30c4de3b0eae18.zip
Don't try to label node if there's no labels
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_manage_node/tasks/main.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/openshift_manage_node/tasks/main.yml b/roles/openshift_manage_node/tasks/main.yml
index c488af723..472d63efe 100644
--- a/roles/openshift_manage_node/tasks/main.yml
+++ b/roles/openshift_manage_node/tasks/main.yml
@@ -22,3 +22,5 @@
{{ openshift.common.client_binary }} label --overwrite node {{ item }} {{ hostvars[item]['openshift_node_labels'] | oo_combine_dict }}
with_items:
- "{{ openshift_nodes }}"
+ when:
+ "'openshift_node_labels' in hostvars[item]"