Skip to contentSkip to conversation

master - lvmdbusd: Add cfg.load to pv remove

PATCH tasleson 1 participant 1 message Nov 17, 2016

lore
Share & tools
lore

tasleson

author
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=dcdef9647b8de6aa958ad988de038c067a1f7199
Commit:        dcdef9647b8de6aa958ad988de038c067a1f7199
Parent:        24fd1dd7a3ac3f9692e2a561c8cd10bdd0d32d96
Author:        Tony Asleson <[email protected]>
AuthorDate:    Wed Nov 16 10:45:31 2016 -0600
Committer:     Tony Asleson <[email protected]>
CommitterDate: Thu Nov 17 11:35:16 2016 -0600

lvmdbusd: Add cfg.load to pv remove

The global dbus state does not match lvm with simply removing the pv dbus object.

---
 daemons/lvmdbusd/pv.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
daemons/lvmdbusd/pv.py +2 -2
index fa07f98..95047d1 100644
@@ -18,7 +18,7 @@ from .utils import vg_obj_path_generate, n, pv_obj_path_generate, \
 from .loader import common
 from .request import RequestEntry
 from .state import State
-from .utils import round_size, mt_remove_dbus_objects
+from .utils import round_size
 
 
 # noinspection PyUnusedLocal
@@ -140,7 +140,7 @@ class Pv(AutomatedProperties):
 		if dbo:
 			rc, out, err = cmdhandler.pv_remove(pv_name, remove_options)
 			if rc == 0:
-				mt_remove_dbus_objects((dbo,))
+				cfg.load()
 			else:
 				# Need to work on error handling, need consistent
 				raise dbus.exceptions.DBusException(