Loading cloudcontrol/server/clients/cli.py +8 −8 Original line number Diff line number Diff line Loading @@ -261,9 +261,6 @@ class CliHandler(RegisteredCCHandler): if obj['r'] != 'vm': errs.error(obj['id'], 'bad role') continue elif obj['status'] != 'stopped': errs.error(obj['id'], 'VM must be stopped') continue try: hvcon = self.server.get_client(obj['p']) except KeyError: Loading @@ -274,7 +271,10 @@ class CliHandler(RegisteredCCHandler): except Exception as err: errs.error(obj['id'], 'Unexpected exception: %s' % str(err)) else: if obj['status'] == 'stopped': errs.success(obj['id'], 'vm now in rescue mode') else: errs.success(obj['id'], 'vm will be in rescue mode after a restart') return errs.get_dict() Loading @@ -292,9 +292,6 @@ class CliHandler(RegisteredCCHandler): if obj['r'] != 'vm': errs.error(obj['id'], 'bad role') continue elif obj['status'] != 'stopped': errs.error(obj['id'], 'VM must be stopped') continue try: hvcon = self.server.get_client(obj['p']) except KeyError: Loading @@ -305,7 +302,10 @@ class CliHandler(RegisteredCCHandler): except Exception as err: errs.error(obj['id'], 'Unexpected exception: %s' % str(err)) else: if obj['status'] == 'stopped': errs.success(obj['id'], 'vm now in normal mode') else: errs.success(obj['id'], 'vm will be in normal mode after a restart') return errs.get_dict() Loading Loading
cloudcontrol/server/clients/cli.py +8 −8 Original line number Diff line number Diff line Loading @@ -261,9 +261,6 @@ class CliHandler(RegisteredCCHandler): if obj['r'] != 'vm': errs.error(obj['id'], 'bad role') continue elif obj['status'] != 'stopped': errs.error(obj['id'], 'VM must be stopped') continue try: hvcon = self.server.get_client(obj['p']) except KeyError: Loading @@ -274,7 +271,10 @@ class CliHandler(RegisteredCCHandler): except Exception as err: errs.error(obj['id'], 'Unexpected exception: %s' % str(err)) else: if obj['status'] == 'stopped': errs.success(obj['id'], 'vm now in rescue mode') else: errs.success(obj['id'], 'vm will be in rescue mode after a restart') return errs.get_dict() Loading @@ -292,9 +292,6 @@ class CliHandler(RegisteredCCHandler): if obj['r'] != 'vm': errs.error(obj['id'], 'bad role') continue elif obj['status'] != 'stopped': errs.error(obj['id'], 'VM must be stopped') continue try: hvcon = self.server.get_client(obj['p']) except KeyError: Loading @@ -305,7 +302,10 @@ class CliHandler(RegisteredCCHandler): except Exception as err: errs.error(obj['id'], 'Unexpected exception: %s' % str(err)) else: if obj['status'] == 'stopped': errs.success(obj['id'], 'vm now in normal mode') else: errs.success(obj['id'], 'vm will be in normal mode after a restart') return errs.get_dict() Loading