diff options
author | Tony Asleson <tasleson@redhat.com> | 2023-03-03 11:17:30 -0600 |
---|---|---|
committer | Tony Asleson <tasleson@redhat.com> | 2023-03-03 11:17:30 -0600 |
commit | 8e27dfd40576f4e2828b169bfe18d8cae9968244 (patch) | |
tree | 115b46341e85be9801bb94edc6d06acc13db1efc /daemons | |
parent | 3e616230f2627d31599d1f4a2c7ff29b5ba86703 (diff) | |
download | lvm2-8e27dfd40576f4e2828b169bfe18d8cae9968244.tar.gz |
lvmdbustest: Test duplicate VG rename
Diffstat (limited to 'daemons')
-rw-r--r-- | daemons/lvmdbusd/cmdhandler.py | 6 |
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) |