From 5366e87574cbf9f13badea37b827ae5b97bcfdbf Mon Sep 17 00:00:00 2001 From: Tony Asleson Date: Sat, 17 Sep 2016 00:10:46 -0500 Subject: [PATCH] lvmdbusd: Set value to non none on error When we register a failure we need to use a valid value which will be returned with the object manager. Otherwise we will raise an Exception because we are trying to construct an object path from None. --- daemons/lvmdbusd/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemons/lvmdbusd/request.py b/daemons/lvmdbusd/request.py index ce6a6ef1a..c48d043bc 100644 --- a/daemons/lvmdbusd/request.py +++ b/daemons/lvmdbusd/request.py @@ -131,7 +131,7 @@ class RequestEntry(object): self._job = None def register_error(self, error_rc, error_message, error_exception): - self._reg_ending(None, error_rc, error_message, error_exception) + self._reg_ending('/', error_rc, error_message, error_exception) def register_result(self, result): self._reg_ending(result)