From 025e23821387742da1844a67c8f3a76e54cbc17d Mon Sep 17 00:00:00 2001 From: David Klaftenegger Date: Mon, 4 Apr 2016 01:59:28 +0200 Subject: [PATCH] handle correctly when no action is defined --- acertmgr.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/acertmgr.py b/acertmgr.py index 61c1a5c..caa0a60 100755 --- a/acertmgr.py +++ b/acertmgr.py @@ -174,6 +174,8 @@ def complete_config(domainconfig, defaults): for name, value in defaults.items(): if name not in domainconfig: domainconfig[name] = value + if 'action' not in domainconfig: + domainconfig['action'] = None return domainconfig @@ -214,4 +216,5 @@ if __name__ == "__main__": # run post-update actions for action in actions: - subprocess.call(action.split()) + if action is not None: + subprocess.call(action.split())