mirror of
https://github.com/moepman/acertmgr.git
synced 2025-01-01 05:31:51 +01:00
handle correctly when no action is defined
This commit is contained in:
parent
db0afbf0b7
commit
025e238213
@ -174,6 +174,8 @@ def complete_config(domainconfig, defaults):
|
|||||||
for name, value in defaults.items():
|
for name, value in defaults.items():
|
||||||
if name not in domainconfig:
|
if name not in domainconfig:
|
||||||
domainconfig[name] = value
|
domainconfig[name] = value
|
||||||
|
if 'action' not in domainconfig:
|
||||||
|
domainconfig['action'] = None
|
||||||
return domainconfig
|
return domainconfig
|
||||||
|
|
||||||
|
|
||||||
@ -214,4 +216,5 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
# run post-update actions
|
# run post-update actions
|
||||||
for action in actions:
|
for action in actions:
|
||||||
subprocess.call(action.split())
|
if action is not None:
|
||||||
|
subprocess.call(action.split())
|
||||||
|
Loading…
Reference in New Issue
Block a user