Commit c68e991b authored by Rafael Monnerat's avatar Rafael Monnerat

slaprunner: Only cat if the file exit

  If there is no error, the raise can be missleading.
parent ba356fee
......@@ -27,7 +27,7 @@ md5sum = feee1dc29d160e0d796dab0ba767745f
[instance-runner-import]
filename = instance-runner-import.cfg.in
md5sum = 0701cf6282efa28086990f73ec2a319f
md5sum = 154be5ff86a145fca4c1358c15196efa
[template-runner-export-script]
filename = template/runner-export.sh.jinja2
......
......@@ -118,7 +118,9 @@ input = inline: #!/bin/sh
echo "Consistency check is too old.";
exit 1;
else
cat $${importer:restore-error-message-file}
if [ -f "$${importer:restore-error-message-file}" ]; then
cat $${importer:restore-error-message-file}
fi
echo "More information can be found here : $RESILIENT_LOG_URL";
exit $(cat $EXIT_CODE_FILE);
fi
......
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