From 8e27dfd40576f4e2828b169bfe18d8cae9968244 Mon Sep 17 00:00:00 2001 From: Tony Asleson Date: Fri, 3 Mar 2023 11:17:30 -0600 Subject: lvmdbustest: Test duplicate VG rename --- daemons/lvmdbusd/cmdhandler.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'daemons') diff --git a/daemons/lvmdbusd/cmdhandler.py b/daemons/lvmdbusd/cmdhandler.py index ea7e300cf..8bc741dc6 100644 --- a/daemons/lvmdbusd/cmdhandler.py +++ b/daemons/lvmdbusd/cmdhandler.py @@ -324,10 +324,12 @@ def vg_rename(vg_uuid, new_name, rename_options): return call(cmd) -def vg_remove(vg_name, remove_options): +def vg_remove(vg_id, remove_options): cmd = ['vgremove'] cmd.extend(options_to_cli_args(remove_options)) - cmd.extend(['-f', vg_name]) + cmd.extend(['-f', vg_id]) + # https://bugzilla.redhat.com/show_bug.cgi?id=2175220 is preventing us from doing the following + # cmd.extend(['-f', "--select", "vg_uuid=%s" % vg_id]) return call(cmd) -- cgit v1.2.1