Check skip_phases in config file

JIRA: COMPOSE-4143
Fixes: https://pagure.io/pungi/issue/1344
Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
Haibo Lin 2020-02-19 11:39:05 +08:00
parent e4f878a498
commit af5ee7030d

View File

@ -233,7 +233,9 @@ def main():
if not pungi.checks.check(conf): if not pungi.checks.check(conf):
sys.exit(1) sys.exit(1)
pungi.checks.check_umask(logger) pungi.checks.check_umask(logger)
if not pungi.checks.check_skip_phases(logger, opts.skip_phase, opts.just_phase): if not pungi.checks.check_skip_phases(
logger, opts.skip_phase + conf.get("skip_phases", []), opts.just_phase
):
sys.exit(1) sys.exit(1)
errors, warnings = pungi.checks.validate(conf) errors, warnings = pungi.checks.validate(conf)