Skip to content
Snippets Groups Projects
Commit 7f06f86a authored by Nathan Bockisch's avatar Nathan Bockisch
Browse files

Added check to report if NGAS ingestion failed

parent 4cef0472
No related branches found
No related tags found
2 merge requests!1452Merge 2.8.2 to main,!1445Added copying of mark 4 observations to the WS staging area
Pipeline #11521 passed
......@@ -63,7 +63,12 @@ for FILE in *; do
FULLPATH=$(/bin/readlink -f $FILE)
NGASCMD="${NGASHOST}ARCHIVE?filename=file://${FULLPATH}"
/bin/curl $NGASCMD
INGESTOUT=$(/bin/curl $NGASCMD)
if echo $INGESTOUT | grep -i "error"; then
echo "Failed to ingest ${FILE}"
exit 1
fi
done"""
def upgrade():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment