mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-18 21:58:06 +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)
|
||||
if pv:
|
||||
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])
|
||||
Manager.handle_execute(rc, out, err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user