removing cmd_output function from utils and nodes

This commit is contained in:
Blake Harnden 2019-10-11 09:34:49 -07:00
parent c3d27eb8a5
commit 4a6d69bb09
10 changed files with 51 additions and 193 deletions

View file

@ -889,7 +889,12 @@ class CoreHandler(socketserver.BaseRequestHandler):
or message.flags & MessageFlags.TEXT.value
):
if message.flags & MessageFlags.LOCAL.value:
status, res = utils.cmd_output(command)
try:
res = utils.check_cmd(command)
status = 0
except CoreCommandError as e:
res = e.stderr
status = e.returncode
else:
try:
res = node.node_net_cmd(command)