diff --git a/clouddriver-core/src/main/groovy/com/netflix/spinnaker/clouddriver/model/EntityTags.groovy b/clouddriver-core/src/main/groovy/com/netflix/spinnaker/clouddriver/model/EntityTags.groovy index 36b18e88671..9bf8d66a664 100644 --- a/clouddriver-core/src/main/groovy/com/netflix/spinnaker/clouddriver/model/EntityTags.groovy +++ b/clouddriver-core/src/main/groovy/com/netflix/spinnaker/clouddriver/model/EntityTags.groovy @@ -105,6 +105,7 @@ class EntityTags { static class EntityTag { String name + String namespace Object value EntityTagValueType valueType @@ -112,6 +113,10 @@ class EntityTags { return name.toLowerCase() } + String getNamespace() { + return (namespace ?: "default").toLowerCase() + } + @JsonIgnore Object getValueForWrite(ObjectMapper objectMapper) { switch (valueType) {