From a1ba713775a93c6b4b73c83386eccb1e6d87d2d1 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 7 Mar 2008 14:29:24 -0500 Subject: In upgrade script, do not crash if files do not exist --- scripts/update-func | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts') 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) -- cgit