瀏覽代碼

Allow no sdn's to be specified in sanity checks

This commit allows specifying no sdn's during install.

Fixes: https://github.com/openshift/openshift-ansible/issues/7583
Michael Gugino 7 年之前
父節點
當前提交
26058533ea
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      roles/lib_utils/action_plugins/sanity_checks.py

+ 1 - 1
roles/lib_utils/action_plugins/sanity_checks.py

@@ -133,7 +133,7 @@ class ActionModule(ActionBase):
                 res_temp = default_val
             res.append(to_bool(res_temp))
 
-        if sum(res) != 1:
+        if sum(res) not in (0, 1):
             plugin_str = list(zip([x[0] for x in NET_PLUGIN_LIST], res))
 
             msg = "Host Checked: {} Only one of must be true. Found: {}".format(host, plugin_str)