Commit a69daabd authored by Antoine Millet's avatar Antoine Millet
Browse files

Fixed execute cli-handler to use the new execute method on client

parent 7acb46ee
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -504,11 +504,11 @@ class CliHandler(RegisteredCCHandler):
                errs.error(obj['id'], 'bad role')
                continue
            try:
                objcon = self.server.get_connection(obj['id'])
                client = self.server.get_client(obj['id'])
            except KeyError:
                errs.error(obj['id'], 'node not connected')
            else:
                returned = objcon.connection.call('execute_command', command)
                returned = client.execute(command)
                errs.success(obj['id'], 'command executed', output=returned)

        return errs.get_dict()