1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-18 10:04:20 +03:00

lvmdbusd: Correct return type for empty PeSegments

This commit is contained in:
Tony Asleson 2016-08-29 12:33:00 -05:00
parent 20318e4c6c
commit 9241dbdf57

View File

@ -55,9 +55,6 @@ class PvState(State):
return self.lvm_path return self.lvm_path
def _lv_object_list(self, vg_name): def _lv_object_list(self, vg_name):
# Note we are returning "a(oa(tts))"
rc = [] rc = []
if vg_name: if vg_name:
for lv in sorted(cfg.db.pv_contained_lv(self.lvm_id)): for lv in sorted(cfg.db.pv_contained_lv(self.lvm_id)):
@ -242,7 +239,7 @@ class Pv(AutomatedProperties):
def PeSegments(self): def PeSegments(self):
if len(self.state.pe_segments): if len(self.state.pe_segments):
return dbus.Array(self.state.pe_segments, signature='(tt)') return dbus.Array(self.state.pe_segments, signature='(tt)')
return dbus.Array([], 'a(tt)') return dbus.Array([], '(tt)')
@property @property
def Exportable(self): def Exportable(self):