1
0
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:
Tony Asleson 2017-04-22 00:07:52 -05:00
parent e50fb06792
commit 0f31f10ac5

View File

@ -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)