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

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):