From 1fe075e7e4c1852f7f16c2f04c3d7e8a83c28e2d Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 14 Mar 2024 12:25:39 -0700 Subject: [PATCH] ostree/container: add missing --version arg https://pagure.io/pungi/pull-request/1726 tries to use `self.args.version`, but the `pungi-make-ostree container` subcommand does not actually have a `--version` arg, so that is not going to work. This adds the required arg. We *could* make it optional by still setting an empty update dict if it's not specified, I guess, but not sure if that's worth the effort. Fixes: https://pagure.io/pungi/issue/1751 Signed-off-by: Adam Williamson (cherry picked from commit 51d58322f26c09e23c598e4186209a07665c9914) --- pungi/ostree/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pungi/ostree/__init__.py b/pungi/ostree/__init__.py index 95143074..932efe1d 100644 --- a/pungi/ostree/__init__.py +++ b/pungi/ostree/__init__.py @@ -101,6 +101,13 @@ def main(args=None): container.add_argument( "--extra-config", metavar="FILE", help="JSON file contains extra configurations" ) + container.add_argument( + "-v", + "--version", + metavar="VERSION", + required=True, + help="version identifier (required)", + ) installerp = subparser.add_parser( "installer", help="Create an OSTree installer image"