summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-10-15 15:47:50 +0200
committerGitHub <noreply@github.com>2019-10-15 15:47:50 +0200
commit5f72e6ef2ef7b6941cefc3c655903aeacb53e115 (patch)
treee5b8f880e54664fe73c5e503b71a75396c526276 /cmd
parente5de079714a72746c8bdc67bb9fc2f522edfefe1 (diff)
parent019f19cf4fbc0e17cb46bb6c992147cd9eebb287 (diff)
downloadpodman-5f72e6ef2ef7b6941cefc3c655903aeacb53e115.tar.gz
podman-5f72e6ef2ef7b6941cefc3c655903aeacb53e115.tar.bz2
podman-5f72e6ef2ef7b6941cefc3c655903aeacb53e115.zip
Merge pull request #4195 from vrothberg/fix-4193
inspect: rename ImageID go field to Image
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/inspect.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/podman/inspect.go b/cmd/podman/inspect.go
index cff221cb0..872b59561 100644
--- a/cmd/podman/inspect.go
+++ b/cmd/podman/inspect.go
@@ -104,6 +104,9 @@ func inspectCmd(c *cliconfig.InspectValues) error {
if strings.Contains(outputFormat, ".Dst") {
outputFormat = strings.Replace(outputFormat, ".Dst", ".Destination", -1)
}
+ if strings.Contains(outputFormat, ".ImageID") {
+ outputFormat = strings.Replace(outputFormat, ".ImageID", ".Image", -1)
+ }
if latestContainer {
lc, err := runtime.GetLatestContainer()
if err != nil {