forked from ungleich-public/cdist
Fix check_beta error if cmd is not in beta args dict.
This commit is contained in:
parent
c5e6ed041c
commit
5f825d1da9
1 changed files with 4 additions and 3 deletions
|
@ -49,9 +49,10 @@ def check_beta(args_dict):
|
||||||
# raise error.
|
# raise error.
|
||||||
if not args_dict['beta']:
|
if not args_dict['beta']:
|
||||||
cmd = args_dict['command']
|
cmd = args_dict['command']
|
||||||
for arg in BETA_ARGS[cmd]:
|
if cmd in BETA_ARGS:
|
||||||
if arg in args_dict:
|
for arg in BETA_ARGS[cmd]:
|
||||||
raise cdist.CdistBetaRequired(cmd, arg)
|
if arg in args_dict:
|
||||||
|
raise cdist.CdistBetaRequired(cmd, arg)
|
||||||
|
|
||||||
|
|
||||||
def commandline():
|
def commandline():
|
||||||
|
|
Loading…
Reference in a new issue