From 75568294be01f74ddadbf2c9bacf5d2fce219a44 Mon Sep 17 00:00:00 2001 From: Tony Asleson Date: Mon, 12 Dec 2016 16:15:12 -0600 Subject: [PATCH] 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. --- daemons/lvmdbusd/lv.py | 4 ++-- daemons/lvmdbusd/vg.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/daemons/lvmdbusd/lv.py b/daemons/lvmdbusd/lv.py index 79fff8703..fa54322ea 100644 --- a/daemons/lvmdbusd/lv.py +++ b/daemons/lvmdbusd/lv.py @@ -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( diff --git a/daemons/lvmdbusd/vg.py b/daemons/lvmdbusd/vg.py index d84bb75a9..9b1df4e91 100644 --- a/daemons/lvmdbusd/vg.py +++ b/daemons/lvmdbusd/vg.py @@ -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( -- 2.43.5