Skip to content

Commit 27a59d1

Browse files
committed
fix(service-config): Don't add annotations if the value is empty
1 parent 8833963 commit 27a59d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rootfs/api/models/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def _save_service_config(self, app, component, data):
8888
component = "%s.deis.io/" % component
8989

9090
# add component to data and flatten
91-
data = {"%s%s" % (component, key): value for key, value in list(data.items())}
91+
data = {"%s%s" % (component, key): value for key, value in list(data.items()) if value}
9292
svc['metadata']['annotations'].update(morph.flatten(data))
9393

9494
# Update the k8s service for the application with new service information

0 commit comments

Comments
 (0)