Commit 117eb1bb authored by Valentin Reis's avatar Valentin Reis

[fix] Adds a warning when argo_nodeos_config is missing.

This catches the exception and sends a message on the log with
the ERROR level.
parent 753c0048
Pipeline #7100 passed with stages
in 4 minutes and 23 seconds
......@@ -83,8 +83,14 @@ class NodeOSClient(object):
cmd += ' cpus:[{0}]'.format(",".join([str(x) for x in params.cpus]))
cmd += ' mems:[{0}]'.format(",".join([str(x) for x in params.mems]))
args.append(cmd)
p = subprocess.Popen(args, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
try:
p = subprocess.Popen(args, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
except OSError:
logger.error("Could not run argo_nodeos_config. Use either the"
"--argo_nodeos_config nrmd option or the"
" ARGO_NODEOS_CONFIG env var. to configure it.")
stdout, stderr = p.communicate()
logpopen(p, args, stdout, stderr)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment