diff --git a/orca-mahe/src/main/groovy/com/netflix/spinnaker/orca/mahe/tasks/CreatePropertiesTask.groovy b/orca-mahe/src/main/groovy/com/netflix/spinnaker/orca/mahe/tasks/CreatePropertiesTask.groovy index b5412c32d2..bcb6fc9aa5 100644 --- a/orca-mahe/src/main/groovy/com/netflix/spinnaker/orca/mahe/tasks/CreatePropertiesTask.groovy +++ b/orca-mahe/src/main/groovy/com/netflix/spinnaker/orca/mahe/tasks/CreatePropertiesTask.groovy @@ -96,7 +96,8 @@ class CreatePropertiesTask implements Task { private Map getExistingProperty(Map prop) { try { - return mapper.readValue(maheService.findProperty(prop).body.in().text, Map) + Map propertyToFind = prop.findAll { it.key != 'value' } + return mapper.readValue(maheService.findProperty(propertyToFind).body.in().text, Map) } catch (RetrofitError error) { if (error.kind == RetrofitError.Kind.HTTP && error.response.status == 404) { return null