summaryrefslogtreecommitdiff
path: root/daemons
diff options
context:
space:
mode:
authorTony Asleson <tasleson@redhat.com>2023-03-03 11:17:30 -0600
committerTony Asleson <tasleson@redhat.com>2023-03-03 11:17:30 -0600
commit8e27dfd40576f4e2828b169bfe18d8cae9968244 (patch)
tree115b46341e85be9801bb94edc6d06acc13db1efc /daemons
parent3e616230f2627d31599d1f4a2c7ff29b5ba86703 (diff)
downloadlvm2-8e27dfd40576f4e2828b169bfe18d8cae9968244.tar.gz
lvmdbustest: Test duplicate VG rename
Diffstat (limited to 'daemons')
-rw-r--r--daemons/lvmdbusd/cmdhandler.py6
1 files changed, 4 insertions, 2 deletions
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)