aboutsummaryrefslogtreecommitdiffstats
path: root/compose
diff options
context:
space:
mode:
authorrameshiyer27 <ramesh.murugan.iyer@est.tech>2024-07-29 15:43:06 +0100
committerRamesh Murugan Iyer <ramesh.murugan.iyer@est.tech>2024-08-01 09:32:29 +0000
commit1836bd57d497827977f175fa88cb7ed49b485e30 (patch)
treecae64837d3c49df9dcce44f936f9d299cb2444fc /compose
parentb837fdc8f0ac8aab67a4af0fcf7103a26ab02bf9 (diff)
Add tests for add/remove elements in migration
Issue-ID: POLICY-4917 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: If42e834954e19f4fe21642be042caea6da10d33e
Diffstat (limited to 'compose')
-rwxr-xr-xcompose/export-ports.sh4
1 files changed, 2 insertions, 2 deletions
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.*$//'
)