Fix not exists label bug (#717)

This commit is contained in:
Pascal Vizeli 2018-09-25 13:46:48 +02:00 committed by GitHub
parent 2f4e114f25
commit f2a5512bbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@ class DockerInterface(CoreSysAttributes):
@property
def meta_labels(self):
"""Return meta data of labels for container/image."""
return self.meta_config.get('Labels', {})
return self.meta_config.get('Labels') or {}
@property
def image(self):