Browse Source

base: handle default method destination

Will ease vm.qubesd_call usage.
Marek Marczykowski-Górecki 7 years ago
parent
commit
14ba770c1a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      qubesmgmt/base.py

+ 2 - 0
qubesmgmt/base.py

@@ -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)