Commit 8aea4299 authored by Antoine Millet's avatar Antoine Millet
Browse files

Fixed bug with plugin_run and script_run arguments in host client

parent 95e66245
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -69,15 +69,16 @@ class HostClient(Client):
        self.proxy.forward(tun.label, port, destination)
        return tun

    def script_run(self, sha1_hash, script, batch=None, *args):
    def script_run(self, sha1_hash, script, owner, batch=None, *args):
        """ Run a script on the host.
        """
        return self.conn.call('script_run', sha1_hash, script, batch=batch, *args)
        return self.conn.call('script_run', sha1_hash, script, owner,
                              batch=batch, *args)

    def plugin_run(self, sha1_hash, plugin, method, batch=None, **kwargs):
    def plugin_run(self, plugin, method, owner, batch=None, **kwargs):
        """ Run a plugin method on the host.
        """
        return self.conn.call('plugin_run', sha1_hash, plugin, method,
        return self.conn.call('plugin_run', plugin, method, owner,
                              batch=batch, **kwargs)

    def plugin_install(self, sha1_hash, plugin):