X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=test%2Fcommon%2Fpa_api_functions.sh;fp=test%2Fcommon%2Fpa_api_functions.sh;h=219aedb34c775fc5e2e5fa2acceecbf82dfc476a;hb=51f04f0977f9be139489f05dcfc45b10c461cf9c;hp=5367060593939b8284dfeeec64f4c54468318662;hpb=a28a4ad261601976c345425692116e5d7250b810;p=nonrtric.git diff --git a/test/common/pa_api_functions.sh b/test/common/pa_api_functions.sh index 53670605..219aedb3 100644 --- a/test/common/pa_api_functions.sh +++ b/test/common/pa_api_functions.sh @@ -533,7 +533,11 @@ prepare_consul_config() { ric_id=${ric%.*.*} #extract pod id from full hosthame ric_id=$(echo "$ric_id" | tr '-' '_') else - ric_id=$ric + if [ $DOCKER_COMPOSE_VERION == "V1" ]; then + ric_id=$ric + else + ric_id=$(echo "$ric" | tr '-' '_') #ric id still needs underscore as it is different from the container name + fi fi echo " Found a1 sim: "$ric_id config_json=$config_json"\n \"name\": \"$ric_id\","