mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
lvmdbusd: Improve error msg to include PV
Include PV device path when we believe it already exists.
This commit is contained in:
parent
e50fb06792
commit
0f31f10ac5
@ -48,7 +48,7 @@ class Manager(AutomatedProperties):
|
|||||||
pv = cfg.om.get_object_path_by_uuid_lvm_id(device, device)
|
pv = cfg.om.get_object_path_by_uuid_lvm_id(device, device)
|
||||||
if pv:
|
if pv:
|
||||||
raise dbus.exceptions.DBusException(
|
raise dbus.exceptions.DBusException(
|
||||||
MANAGER_INTERFACE, "PV Already exists!")
|
MANAGER_INTERFACE, "PV %s Already exists!" % device)
|
||||||
|
|
||||||
rc, out, err = cmdhandler.pv_create(create_options, [device])
|
rc, out, err = cmdhandler.pv_create(create_options, [device])
|
||||||
Manager.handle_execute(rc, out, err)
|
Manager.handle_execute(rc, out, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user