Loading cloudcontrol/server/clients/cli.py +6 −2 Original line number Diff line number Diff line Loading @@ -932,7 +932,9 @@ class CliHandler(RegisteredCCHandler): :return: the label of the created tunnel """ objects = self.client.list(tql, show=('r', 'p', 'h'), method='console') if len(objects) != 1: if not objects: raise NotImplementedError('No objects matched by query') elif len(objects) != 1: raise NotImplementedError('Console only support one tunnel at time for now') errs = Reporter() for obj in objects: Loading Loading @@ -961,7 +963,9 @@ class CliHandler(RegisteredCCHandler): :return: the label of the created tunnel """ objects = self.client.list(tql, show=('r', 'p'), method='shell') if len(objects) != 1: if not objects: raise NotImplementedError('No objects matched by query') elif len(objects) != 1: raise NotImplementedError('Shell only support one tunnel at time for now') errs = Reporter() for obj in objects: Loading Loading
cloudcontrol/server/clients/cli.py +6 −2 Original line number Diff line number Diff line Loading @@ -932,7 +932,9 @@ class CliHandler(RegisteredCCHandler): :return: the label of the created tunnel """ objects = self.client.list(tql, show=('r', 'p', 'h'), method='console') if len(objects) != 1: if not objects: raise NotImplementedError('No objects matched by query') elif len(objects) != 1: raise NotImplementedError('Console only support one tunnel at time for now') errs = Reporter() for obj in objects: Loading Loading @@ -961,7 +963,9 @@ class CliHandler(RegisteredCCHandler): :return: the label of the created tunnel """ objects = self.client.list(tql, show=('r', 'p'), method='shell') if len(objects) != 1: if not objects: raise NotImplementedError('No objects matched by query') elif len(objects) != 1: raise NotImplementedError('Shell only support one tunnel at time for now') errs = Reporter() for obj in objects: Loading