Commit e1ea3b4d authored by Antoine Millet's avatar Antoine Millet Committed by Antoine Millet
Browse files

Fixed exception raised to cli when error occurs in command execution

parent b1a29f47
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -521,7 +521,11 @@ class CliHandler(RegisteredCCHandler):
            except KeyError:
                errs.error(obj['id'], 'node not connected')
            else:
                try:
                    returned = client.execute(command)
                except Exception as err:
                    errs.error(obj['id'], str(err))
                else:
                    errs.success(obj['id'], 'command executed', output=returned)

        return errs.get_dict()