Skip to content

Commit

Permalink
network module raises Exception on command failure issue 51
Browse files Browse the repository at this point in the history
  • Loading branch information
myakove committed Dec 20, 2017
1 parent 397793f commit 1ecc7a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rrmngmnt/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import shlex
import six
import subprocess
from errors import CommandExecutionFailure

from rrmngmnt.service import Service

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 1ecc7a6

Please sign in to comment.