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

Fixed rshell and console bug (old API usage)

parent e884e98b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -914,7 +914,7 @@ class CliHandler(RegisteredCCHandler):
        :param tql: tql matching only one object on which start the console
        :return: the label of the created tunnel
        """
        objects = self.server.list(tql, show=('r', 'p', 'h'), method='console')
        objects = self.client.list(tql, show=('r', 'p', 'h'), method='console')
        if len(objects) != 1:
            raise NotImplementedError('Console only support one tunnel at time for now')
        errs = Reporter()
@@ -939,7 +939,7 @@ class CliHandler(RegisteredCCHandler):
        :param tql: tql matching only one object on which start the rshell
        :return: the label of the created tunnel
        """
        objects = self.server.list(tql, show=('r', 'p'), method='rshell')
        objects = self.client.list(tql, show=('r', 'p'), method='rshell')
        if len(objects) != 1:
            raise NotImplementedError('Rshell only support one tunnel at time for now')
        errs = Reporter()