浏览代码

Don't run node config upgrade hook if host is not a node.

Devan Goodwin 8 年之前
父节点
当前提交
8681ae6983
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      playbooks/common/openshift-cluster/upgrades/upgrade.yml

+ 1 - 1
playbooks/common/openshift-cluster/upgrades/upgrade.yml

@@ -188,7 +188,7 @@
   - include: docker/upgrade.yml
     when: l_docker_upgrade is defined and l_docker_upgrade | bool and not openshift.common.is_atomic | bool
   - include: "{{ node_config_hook }}"
-    when: node_config_hook is defined
+    when: node_config_hook is defined and inventory_hostname in groups.oo_nodes_to_config
 
   - include: rpm_upgrade.yml
     vars: