base: handle default method destination

Will ease vm.qubesd_call usage.
This commit is contained in:
Marek Marczykowski-Górecki 2017-04-29 02:27:40 +02:00
parent 9aa2427513
commit 14ba770c1a
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -57,6 +57,8 @@ class PropertyHolder(object):
:param payload: Payload send to the method
:return: Data returned by qubesd (string)
'''
if dest is None:
dest = self._method_dest
# have the actual implementation at Qubes() instance
if self.app:
return self.app.qubesd_call(dest, method, arg, payload)