diff options
author | Jhon Honce <jhonce@redhat.com> | 2020-09-18 11:47:55 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2020-09-21 08:51:52 -0700 |
commit | e06230c9d5768af3e480e58b8e781e81737fc0d3 (patch) | |
tree | 0c93a64c5915dc2118854bc4a65a75d348d22510 /pkg/domain/entities/images.go | |
parent | 051912c8e6998047d31cb7b8330ffcf65a4ead40 (diff) | |
download | podman-e06230c9d5768af3e480e58b8e781e81737fc0d3.tar.gz podman-e06230c9d5768af3e480e58b8e781e81737fc0d3.tar.bz2 podman-e06230c9d5768af3e480e58b8e781e81737fc0d3.zip |
Restore 'id' stanza in pull results
id is the last image id from the set of id's returned via the images
stanza.
id may be deprecated in a future version of the API
Created test_rest_v2_0_0.py to reflect the bump in the API Version.
Fixes #7686
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg/domain/entities/images.go')
-rw-r--r-- | pkg/domain/entities/images.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/domain/entities/images.go b/pkg/domain/entities/images.go index d0b738934..cad6693fa 100644 --- a/pkg/domain/entities/images.go +++ b/pkg/domain/entities/images.go @@ -156,6 +156,8 @@ type ImagePullReport struct { Error string `json:"error,omitempty"` // Images contains the ID's of the images pulled Images []string `json:"images,omitempty"` + // ID contains image id (retained for backwards compatibility) + ID string `json:"id,omitempty"` } // ImagePushOptions are the arguments for pushing images. |