fix indentation error that caused too many test failures
This commit is contained in:
parent
206a9c9607
commit
6a1d1a2e59
1 changed files with 5 additions and 5 deletions
|
@ -74,10 +74,10 @@ def parse_subparser_arguments(unparsed_arguments, subparsers):
|
||||||
if item in subparsers:
|
if item in subparsers:
|
||||||
remaining_arguments.remove(item)
|
remaining_arguments.remove(item)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
arguments[canonical_name] = None if canonical_name in subcommand_parsers_mapping else parsed
|
arguments[canonical_name] = None if canonical_name in subcommand_parsers_mapping else parsed
|
||||||
except UnboundLocalError:
|
except UnboundLocalError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
for argument in arguments:
|
for argument in arguments:
|
||||||
if not arguments[argument]:
|
if not arguments[argument]:
|
||||||
|
@ -972,7 +972,7 @@ def parse_arguments(*unparsed_arguments):
|
||||||
unparsed_arguments, subparsers.choices
|
unparsed_arguments, subparsers.choices
|
||||||
)
|
)
|
||||||
|
|
||||||
if 'bootstrap' in arguments.keys() and len(arguments.keys()) > 1:
|
if 'bootstrap' in arguments.keys() and 'config' in arguments.keys() and len(arguments.keys()) > 2:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
'The bootstrap action cannot be combined with other actions. Please run it separately.'
|
'The bootstrap action cannot be combined with other actions. Please run it separately.'
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue