Fix warning about productimg in skip_phases option
If phase is skipped in a config option (and not on command line), we should just print a warning or do nothing in quiet mode. JIRA: RHELCMP-399 Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
0525768519
commit
9a1b9dd154
@ -780,7 +780,7 @@ def make_schema():
|
||||
"paths_module": {"type": "string"},
|
||||
"skip_phases": {
|
||||
"type": "array",
|
||||
"items": {"type": "string", "enum": PHASES_NAMES},
|
||||
"items": {"type": "string", "enum": PHASES_NAMES + ["productimg"]},
|
||||
"default": [],
|
||||
},
|
||||
"image_name_format": {
|
||||
|
@ -249,7 +249,7 @@ def main():
|
||||
if not opts.quiet:
|
||||
# TODO: workaround for config files containing skip_phase = productimg
|
||||
# Remove when all config files are up to date
|
||||
if "productimg" in opts.skip_phase or "productimg" in opts.just_phase:
|
||||
if "productimg" in opts.skip_phase + opts.just_phase + conf["skip_phases"]:
|
||||
print(
|
||||
"WARNING: productimg phase has been removed, please remove it from "
|
||||
"--skip-phase or --just-phase option",
|
||||
|
Loading…
Reference in New Issue
Block a user