From 1836bd57d497827977f175fa88cb7ed49b485e30 Mon Sep 17 00:00:00 2001 From: rameshiyer27 Date: Mon, 29 Jul 2024 15:43:06 +0100 Subject: Add tests for add/remove elements in migration Issue-ID: POLICY-4917 Signed-off-by: zrrmmua Change-Id: If42e834954e19f4fe21642be042caea6da10d33e --- compose/export-ports.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compose') diff --git a/compose/export-ports.sh b/compose/export-ports.sh index aa97f493..6eaaedb8 100755 --- a/compose/export-ports.sh +++ b/compose/export-ports.sh @@ -17,11 +17,11 @@ # SPDX-License-Identifier: Apache-2.0 # ============LICENSE_END========================================================= -if $(docker images | grep -q "onap\/policy-api") +if $(docker images | grep -q "^onap\/policy-api") then export CONTAINER_LOCATION=$( docker images | - grep onap/policy-api | + grep "^onap/policy-api" | head -1 | sed 's/onap\/policy-api.*$//' ) -- cgit