summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/update-func2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/update-func b/scripts/update-func
index 7665410..771ec18 100755
--- a/scripts/update-func
+++ b/scripts/update-func
@@ -62,6 +62,8 @@ def func_minion_has_cert_info():
return False
def func_certmaster_has_info(option):
+ if not os.path.exists(FUNC_CERTMASTER_CONF):
+ return False
cmc_content = open(FUNC_CERTMASTER_CONF, 'r').readlines()
for line in cmc_content:
match = line.find(option)