diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-12-02 19:28:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-02 19:28:48 +0100 |
commit | 4ff0ba4c8731e3dc1d56010f80468260104f3abc (patch) | |
tree | 897ede56e699e7f39ad5aa949851bf7fd11ea3c3 /cmd/podman/secrets/list.go | |
parent | ee39281c35e3ceca98c0c51c9cc5d792c56ba533 (diff) | |
parent | 61792de36ea2ea98f6e3aef3821d1b15beebf9e0 (diff) | |
download | podman-4ff0ba4c8731e3dc1d56010f80468260104f3abc.tar.gz podman-4ff0ba4c8731e3dc1d56010f80468260104f3abc.tar.bz2 podman-4ff0ba4c8731e3dc1d56010f80468260104f3abc.zip |
Merge pull request #12455 from jwhonce/issues/10974
Refactor podman image command output
Diffstat (limited to 'cmd/podman/secrets/list.go')
-rw-r--r-- | cmd/podman/secrets/list.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/podman/secrets/list.go b/cmd/podman/secrets/list.go index f136de4ab..255d9ae1a 100644 --- a/cmd/podman/secrets/list.go +++ b/cmd/podman/secrets/list.go @@ -71,7 +71,10 @@ func outputTemplate(cmd *cobra.Command, responses []*entities.SecretListReport) "UpdatedAt": "UPDATED", }) - row := report.NormalizeFormat(listFlag.format) + row := cmd.Flag("format").Value.String() + if cmd.Flags().Changed("format") { + row = report.NormalizeFormat(row) + } format := report.EnforceRange(row) tmpl, err := report.NewTemplate("list").Parse(format) |