mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
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.
This commit is contained in:
parent
65f59184c8
commit
5366e87574
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user