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,6 +49,7 @@ def check_beta(args_dict):
|
|||
# raise error.
|
||||
if not args_dict['beta']:
|
||||
cmd = args_dict['command']
|
||||
if cmd in BETA_ARGS:
|
||||
for arg in BETA_ARGS[cmd]:
|
||||
if arg in args_dict:
|
||||
raise cdist.CdistBetaRequired(cmd, arg)
|
||||
|
|
Loading…
Reference in a new issue