base: handle default method destination
Will ease vm.qubesd_call usage.
This commit is contained in:
parent
9aa2427513
commit
14ba770c1a
@ -57,6 +57,8 @@ class PropertyHolder(object):
|
|||||||
:param payload: Payload send to the method
|
:param payload: Payload send to the method
|
||||||
:return: Data returned by qubesd (string)
|
:return: Data returned by qubesd (string)
|
||||||
'''
|
'''
|
||||||
|
if dest is None:
|
||||||
|
dest = self._method_dest
|
||||||
# have the actual implementation at Qubes() instance
|
# have the actual implementation at Qubes() instance
|
||||||
if self.app:
|
if self.app:
|
||||||
return self.app.qubesd_call(dest, method, arg, payload)
|
return self.app.qubesd_call(dest, method, arg, payload)
|
||||||
|
Loading…
Reference in New Issue
Block a user