summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2022-07-29 00:07:21 +0200
committerMiloslav Trmač <mitr@redhat.com>2022-08-02 16:52:56 +0200
commitb2b3edaca0ae0a1490c8f6f62b7701fd3e8b35db (patch)
treed931887d59aacd761a70f53a9ec3db0910c19fde
parent49d40293b449bb5a2c1fec202f7f0073a8ea6e0b (diff)
downloadpodman-b2b3edaca0ae0a1490c8f6f62b7701fd3e8b35db.tar.gz
podman-b2b3edaca0ae0a1490c8f6f62b7701fd3e8b35db.tar.bz2
podman-b2b3edaca0ae0a1490c8f6f62b7701fd3e8b35db.zip
Use signByFlagName instead of copy&pasting the string
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
-rw-r--r--cmd/podman/images/push.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/images/push.go b/cmd/podman/images/push.go
index 1b3419014..764936426 100644
--- a/cmd/podman/images/push.go
+++ b/cmd/podman/images/push.go
@@ -117,7 +117,7 @@ func pushFlags(cmd *cobra.Command) {
_ = flags.MarkHidden("compress")
_ = flags.MarkHidden("digestfile")
_ = flags.MarkHidden("quiet")
- _ = flags.MarkHidden("sign-by")
+ _ = flags.MarkHidden(signByFlagName)
}
if !registry.IsRemote() {
flags.StringVar(&pushOptions.SignaturePolicy, "signature-policy", "", "Path to a signature-policy file")