diff --git a/rrmngmnt/network.py b/rrmngmnt/network.py index 5c25664..4fa18f6 100644 --- a/rrmngmnt/network.py +++ b/rrmngmnt/network.py @@ -5,6 +5,7 @@ import shlex import six import subprocess +from errors import CommandExecutionFailure from rrmngmnt.service import Service @@ -142,7 +143,7 @@ def _cmd(self, cmd): if rc: cmd_out = " ".join(cmd) - raise Exception( + raise CommandExecutionFailure( "Fail to run command %s: %s ; %s" % (cmd_out, out, err)) return out