aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Skultety <eskultet@redhat.com>2023-04-04 13:48:04 +0200
committerErik Skultety <eskultet@redhat.com>2023-04-18 11:57:31 +0200
commitbe9a524f47d1f4a146a6e74a15f005870d5567a5 (patch)
tree7e35c4ff970ea06caf52b8558afb48e55adb8572
parent8d2e2921cdd4cbe6d8e43a0b5869ee4314bb8500 (diff)
downloadlibvirt-ci-be9a524f47d1f4a146a6e74a15f005870d5567a5.zip
libvirt-ci-be9a524f47d1f4a146a6e74a15f005870d5567a5.tar.gz
libvirt-ci-be9a524f47d1f4a146a6e74a15f005870d5567a5.tar.bz2
commandline: Drop 'gitrevopt' parser from the 'update' parser
This option was never used by the 'update' command, the option was always specific only to the 'build' command. Signed-off-by: Erik Skultety <eskultet@redhat.com>
-rw-r--r--lcitool/application.py2
-rw-r--r--lcitool/commandline.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/lcitool/application.py b/lcitool/application.py
index 48511b2..9104ce4 100644
--- a/lcitool/application.py
+++ b/lcitool/application.py
@@ -204,7 +204,7 @@ class Application:
self._entrypoint_debug(args)
self._execute_playbook("update", args.hosts, args.projects,
- args.git_revision, args.data_dir, args.verbose)
+ None, args.data_dir, args.verbose)
def _action_build(self, args):
self._entrypoint_debug(args)
diff --git a/lcitool/commandline.py b/lcitool/commandline.py
index ec2f961..7b5649c 100644
--- a/lcitool/commandline.py
+++ b/lcitool/commandline.py
@@ -235,7 +235,7 @@ class CommandLine:
updateparser = subparsers.add_parser(
"update",
help="prepare hosts and keep them updated",
- parents=[verbosityopt, hostsopt, update_projectopt, gitrevopt],
+ parents=[verbosityopt, hostsopt, update_projectopt],
)
updateparser.set_defaults(func=Application._action_update)