cmd/plume: Tiny cleanup
@@ -307,14 +307,10 @@ func doGCE(ctx context.Context, client *http.Client, src *storage.Bucket, spec *
}
var pendings []*gcloud.Pending
- for _, old := range images {
+ for _, old := range oldImages {
if old.Deprecated != nil && old.Deprecated.State != "" {
continue
}
- if old.Name == name {
- // The current image, uploaded in a previous run
- continue
- }
plog.Noticef("Deprecating old image %s", old.Name)
pending, err := api.DeprecateImage(old.Name, gcloud.DeprecationStateDeprecated, imageLink)
if err != nil {
