Skip to content

Commit

Permalink
make foreman_version optional, not all callers need it
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Dec 11, 2023
1 parent 5907faa commit 80d7c8e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build_stage_repository
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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}"
Expand Down

0 comments on commit 80d7c8e

Please sign in to comment.