From 80d7c8e6b057f4962ecc4488a2323549f875c5e2 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 11 Dec 2023 13:24:23 +0100 Subject: [PATCH] make foreman_version optional, not all callers need it --- build_stage_repository | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build_stage_repository b/build_stage_repository index e33d0db..d611ba3 100755 --- a/build_stage_repository +++ b/build_stage_repository @@ -283,7 +283,8 @@ def handle_args(): ) parser.add_argument( 'foreman_version', - help='Foreman Version for one specefic katello verseion' + nargs='?', + help='Foreman Version for one specefic katello version' ) return parser.parse_args() @@ -327,7 +328,7 @@ def main(): version = args.version dist = args.dist arch = 'x86_64' - foreman_version = args.foreman_version + foreman_version = args.foreman_version or args.version base_dir = 'tmp' stage_dir = f"{base_dir}/{collection}/{version}/{dist}"