AWS: Fix console screenshot retrieval

The JSON from AWS was not being passed to `jq` and the console
screenshots were empty. 🤦

Signed-off-by: Major Hayden <major@redhat.com>
This commit is contained in:
Major Hayden 2020-06-08 16:02:48 -05:00 committed by Major Hayden
parent 904335cc94
commit bc2a91a688

View file

@ -76,7 +76,7 @@ store_instance_screenshot () {
SCREENSHOT_FILE=${WORKSPACE}/console-screenshot-${ID}-${VERSION_ID}-${LOOP_COUNTER}.jpg
$AWS_CMD ec2 get-console-screenshot --instance-id ${1} > $INSTANCE_CONSOLE
jq -r '.ImageData' | base64 -d - > $SCREENSHOT_FILE
jq -r '.ImageData' $INSTANCE_CONSOLE | base64 -d - > $SCREENSHOT_FILE
}
# Write an AWS TOML file