Skip to content

Commit

Permalink
fix: check for error in script
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Glimcher <[email protected]>
  • Loading branch information
glimchb committed Oct 16, 2023
1 parent 1be3717 commit bbd98d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/change_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ curl -i --user [email protected]:my-secret -H "Accept:application/yang-data+j
# change boot image from https://www.watsen.net/docs/sztpd/current/admin-guide/#example-put-ing-an-entry-before-another-entry
curl -i -X PUT --user [email protected]:my-secret --data @/tmp/boot-images.json -H 'Content-Type:application/yang-data+json' ${BOOTSTRAP_URL}/wn-sztpd-1:boot-images | tee /tmp/result.json

# check for errors
grep -v "error-message" /tmp/result.json

# read back to check configuration was set
curl -i --user [email protected]:my-secret -H "Accept:application/yang-data+json" ${BOOTSTRAP_URL} > /tmp/running_after.json

Expand Down

0 comments on commit bbd98d2

Please sign in to comment.