master - lvmdbusd: Correct return type for empty PeSegments
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=9241dbdf57c997bcb8467b823cae6aee7faab03b Commit: 9241dbdf57c997bcb8467b823cae6aee7faab03b Parent: 20318e4c6c389b5ee25b8897fb93aaa036878a95 Author: Tony Asleson <[email protected]> AuthorDate: Mon Aug 29 12:33:00 2016 -0500 Committer: Tony Asleson <[email protected]> CommitterDate: Mon Aug 29 15:26:56 2016 -0500
lvmdbusd: Correct return type for empty PeSegments
--- daemons/lvmdbusd/pv.py | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-)
daemons/lvmdbusd/pv.py +1 -4
@@ -55,9 +55,6 @@ class PvState(State): return self.lvm_path def _lv_object_list(self, vg_name): - - # Note we are returning "a(oa(tts))" - rc = [] if vg_name: for lv in sorted(cfg.db.pv_contained_lv(self.lvm_id)):
@@ -242,7 +239,7 @@ class Pv(AutomatedProperties): def PeSegments(self): if len(self.state.pe_segments): return dbus.Array(self.state.pe_segments, signature='(tt)') - return dbus.Array([], 'a(tt)') + return dbus.Array([], '(tt)') @property def Exportable(self):