Merge "image_uploader: handle when an image has null labels" into stable/train
This commit is contained in:
commit
e7e9af1f34
|
@ -2117,6 +2117,9 @@ class PythonImageUploader(BaseImageUploader):
|
|||
digest = image['digest']
|
||||
created = image['created']
|
||||
labels = config['config'].get('Labels', {})
|
||||
# NOTE: labels can be null
|
||||
if labels is None:
|
||||
labels = {}
|
||||
architecture = config['architecture']
|
||||
image_os = config['os']
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue