Skip to content

Commit 0ce4284

Browse files
author
Jan Wozniak
committed
Log image changes on verify-signature without --save
1 parent 5e0bfba commit 0ce4284

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/oc/admin/image/verify-signature.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,8 @@ func (o VerifyImageSignatureOptions) Run() error {
245245
if o.Save || o.RemoveAll {
246246
_, err := o.ImageClient.Images().Update(img)
247247
return err
248+
} else {
249+
fmt.Fprintf(o.Out, "Neither --save nor --remove-all were passed, image %q not updated to %v\n", o.InputImage, img)
248250
}
249251
return nil
250252
}

0 commit comments

Comments
 (0)