From 98bca2a71b396ddc83f638a498e8315dfccbc3a1 Mon Sep 17 00:00:00 2001 From: Piradeep Kandasamy Date: Fri, 4 Jun 2021 14:13:17 -0400 Subject: [PATCH] fix(ecs): update application caching agent to get appname from Moniker --- .../clouddriver/ecs/provider/agent/ApplicationCachingAgent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clouddriver-ecs/src/main/java/com/netflix/spinnaker/clouddriver/ecs/provider/agent/ApplicationCachingAgent.java b/clouddriver-ecs/src/main/java/com/netflix/spinnaker/clouddriver/ecs/provider/agent/ApplicationCachingAgent.java index c49839c3e07..bec165b8379 100644 --- a/clouddriver-ecs/src/main/java/com/netflix/spinnaker/clouddriver/ecs/provider/agent/ApplicationCachingAgent.java +++ b/clouddriver-ecs/src/main/java/com/netflix/spinnaker/clouddriver/ecs/provider/agent/ApplicationCachingAgent.java @@ -83,7 +83,7 @@ protected List getItems(AmazonECS ecs, ProviderCache providerCache) Map>> appRelationships = new HashMap<>(); for (Service service : services) { - String applicationKey = service.getApplicationName(); + String applicationKey = service.getMoniker().getApp(); String serviceKey = Keys.getServiceKey(service.getAccount(), service.getRegion(), service.getServiceName());