summaryrefslogtreecommitdiffstats
path: root/nixos/maintainers
diff options
context:
space:
mode:
authorTimothy DeHerrera <tim.deh@pm.me>2021-09-17 16:03:54 -0600
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-10-03 19:03:28 -0700
commit2d67b946b7a065dfae76f77e6da810ac022f99bd (patch)
treefe25b74c88d68c7f68f1d50f7c6986ed656e10d1 /nixos/maintainers
parent407998d15a06a733c330b0a73e1897032c4e6041 (diff)
create-amis.sh: use status message
The progress ID is fairly useless. Status message is more useful for humans.
Diffstat (limited to 'nixos/maintainers')
-rwxr-xr-xnixos/maintainers/scripts/ec2/create-amis.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/maintainers/scripts/ec2/create-amis.sh b/nixos/maintainers/scripts/ec2/create-amis.sh
index 19efc0633434..ee5019413a1d 100755
--- a/nixos/maintainers/scripts/ec2/create-amis.sh
+++ b/nixos/maintainers/scripts/ec2/create-amis.sh
@@ -123,11 +123,11 @@ wait_for_import() {
local state snapshot_id
log "Waiting for import task $task_id to be completed"
while true; do
- read -r state progress snapshot_id < <(
+ read -r state message snapshot_id < <(
aws ec2 describe-import-snapshot-tasks --region "$region" --import-task-ids "$task_id" | \
- jq -r '.ImportSnapshotTasks[].SnapshotTaskDetail | "\(.Status) \(.Progress) \(.SnapshotId)"'
+ jq -r '.ImportSnapshotTasks[].SnapshotTaskDetail | "\(.Status) \(.StatusMessage) \(.SnapshotId)"'
)
- log " ... state=$state progress=$progress snapshot_id=$snapshot_id"
+ log " ... state=$state message=$message snapshot_id=$snapshot_id"
case "$state" in
active)
sleep 10