create-amis: use jq instead of json
This commit is contained in:
parent
3800b21be9
commit
49d608ac00
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ for type in $types; do
|
|||
ami=$(aws ec2 copy-image \
|
||||
--region "$region" \
|
||||
--source-region "$prevRegion" --source-image-id "$prevAmi" \
|
||||
--name "$name" --description "$description" | json -q .ImageId)
|
||||
--name "$name" --description "$description" | jq -r '.ImageId')
|
||||
if [ "$ami" = null ]; then break; fi
|
||||
else
|
||||
|
||||
|
|
Loading…
Reference in a new issue