1
0
mirror of https://github.com/moepman/acertmgr.git synced 2025-01-06 06:05:23 +01:00

handle correctly when no action is defined

This commit is contained in:
David Klaftenegger 2016-04-04 01:59:28 +02:00
parent 15467e9f84
commit 3d00888a42

View File

@ -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())