Skip to contentSkip to conversation

master - lvmdbusd: Ensure all paths return value

PATCH Tony Asleson 1 participant 1 message Jan 16, 2019

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=b6d26245fbde5e66a616f27363118dc370062f7a
Commit:        b6d26245fbde5e66a616f27363118dc370062f7a
Parent:        5f102b3421873a6111e477b40fdbe1a93ef258b9
Author:        Tony Asleson <[email protected]>
AuthorDate:    Mon Jan 14 09:08:55 2019 -0600
Committer:     Tony Asleson <[email protected]>
CommitterDate: Wed Jan 16 16:29:05 2019 -0600

lvmdbusd: Ensure all paths return value

---
 daemons/lvmdbusd/automatedproperties.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
daemons/lvmdbusd/automatedproperties.py +1 -1
index e188fa4..b591948 100644
@@ -155,7 +155,7 @@ class AutomatedProperties(dbus.service.Object):
 		# through all dbus objects as some don't have a search method, like
 		# 'Manager' object.
 		if not self._ap_search_method:
-			return
+			return 0
 
 		search = self.lvm_id
 		if search_key: