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
2 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue