1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

lvmdbusd: Use cfg.reload() instead of dbo.refresh

We want to update the data and send out any signals as needed, not just
update the in memory database.
This commit is contained in:
Tony Asleson 2016-12-12 16:15:12 -06:00
parent 6fe6e8053a
commit 75568294be
2 changed files with 4 additions and 4 deletions

View File

@ -618,7 +618,7 @@ class Lv(LvCommon):
rc, out, err = cmdhandler.activate_deactivate(
'lvchange', lv_name, activate, control_flags, options)
if rc == 0:
dbo.refresh()
cfg.load()
return '/'
else:
raise dbus.exceptions.DBusException(
@ -667,7 +667,7 @@ class Lv(LvCommon):
rc, out, err = cmdhandler.lv_tag(
lv_name, tags_add, tags_del, tag_options)
if rc == 0:
dbo.refresh()
cfg.load()
return '/'
else:
raise dbus.exceptions.DBusException(

View File

@ -727,7 +727,7 @@ class Vg(AutomatedProperties):
rc, out, err = cmdhandler.vg_tag(
vg_name, tags_add, tags_del, tag_options)
if rc == 0:
dbo.refresh()
cfg.load()
return '/'
else:
raise dbus.exceptions.DBusException(
@ -780,7 +780,7 @@ class Vg(AutomatedProperties):
if dbo:
rc, out, err = method(vg_name, value, options)
if rc == 0:
dbo.refresh()
cfg.load()
return '/'
else:
raise dbus.exceptions.DBusException(