Skip to contentSkip to conversation

xfstests-bld: remove redundant listing of GCE images

PATCH In review Eric Biggers 2 participants 2 messages Dec 21, 2016 – Dec 22, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfstests-bld: remove redundant listing of GCE images

From: Eric Biggers <[email protected]>

When a GCE image is created, the same information about the new image was being printed by both 'gcloud compute images create' and 'gcloud compute images list'. Fix this by removing the call to 'gcloud compute images list'.

---
 kvm-xfstests/test-appliance/gce-create-image | 1 -
 1 file changed, 1 deletion(-)
kvm-xfstests/test-appliance/gce-create-image +0 -1
index 005cc8e..830dd5b 100755
@@ -138,4 +138,3 @@ gcloud compute --project "$GCE_PROJECT" -q images create "$ROOT_FS-$DATECODE" \
 	--family "$ROOT_FS"
 gcloud compute --project "$GCE_PROJECT" -q disks delete "$BLD_DISK" \
 	--zone "$GCE_ZONE" >& /dev/null &
-gcloud compute --project "$GCE_PROJECT" -q images list --filter="family=$ROOT_FS"
Signature · 1 line
2.8.0.rc3.226.g39d4020
#1 lore raw
Quoted 8 lines · Eric Biggers

From: Eric Biggers <[email protected]>

When a GCE image is created, the same information about the new image was being printed by both 'gcloud compute images create' and 'gcloud compute images list'. Fix this by removing the call to 'gcloud compute images list'.

This was deliberate; the goal was to remind the image maintainer to consider whether some of the older images should be GC'ed.

- Ted