diff options
Diffstat (limited to 'zuul/cmd/cloner.py')
-rwxr-xr-x | zuul/cmd/cloner.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zuul/cmd/cloner.py b/zuul/cmd/cloner.py index e38892c8f..5bbe3a0ea 100755 --- a/zuul/cmd/cloner.py +++ b/zuul/cmd/cloner.py @@ -93,7 +93,8 @@ class Cloner(zuul.cmd.ZuulApp): # must all be set, otherwise fallback to defaults. zuul_missing = [zuul_opt for zuul_opt, val in vars(args).items() if zuul_opt.startswith('zuul') and val is None] - if len(zuul_missing) < len(ZUUL_ENV_SUFFIXES): + if (len(zuul_missing) > 0 and + len(zuul_missing) < len(ZUUL_ENV_SUFFIXES)): parser.error(("Some Zuul parameters are not set:\n\t%s\n" "Define them either via environment variables or " "using options above." % |