From 367213a3943961126c6f7c1dce45c7fafea9e6b2 Mon Sep 17 00:00:00 2001 From: umohnani8 Date: Mon, 5 Feb 2018 10:42:14 -0500 Subject: Match podman inspect output to docker inspect Made a change to make sure that the output paths of podman inspect matches that of docker inspect. For example to get the stop signal you should be able to do podman inspect ctr --format {{.Config.StopSignal}} and the same thing in docker will give the same results. Signed-off-by: umohnani8 Closes: #292 Approved by: rhatdan --- pkg/inspect/inspect.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkg/inspect') diff --git a/pkg/inspect/inspect.go b/pkg/inspect/inspect.go index 9e7137560..11a252535 100644 --- a/pkg/inspect/inspect.go +++ b/pkg/inspect/inspect.go @@ -12,9 +12,9 @@ import ( // ContainerData holds the podman inspect data for a container type ContainerData struct { - CtrInspectData *ContainerInspectData `json:"CtrInspectData"` - HostConfig *HostConfig `json:"HostConfig"` - Config *CtrConfig `json:"Config"` + *ContainerInspectData + HostConfig *HostConfig `json:"HostConfig"` + Config *CtrConfig `json:"Config"` } // HostConfig represents the host configuration for the container -- cgit v1.2.3-54-g00ecf