Merge "[OOM] Fix Feed Provisioning for DFC"
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Thu, 16 Sep 2021 11:52:44 +0000 (11:52 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 16 Sep 2021 11:52:44 +0000 (11:52 +0000)
kubernetes/common/common/templates/_dmaapProvisioning.tpl

index 704bd06..d28494a 100644 (file)
       cd /opt/app/config/cache
       for file in $(ls feed*); do
         NUM=$(echo "$file" | sed 's/feedConfig-\([0-9]\+\)-resp.json/\1/')
-        export DR_LOG_URL_"$NUM"="$(grep -o '"logURL":"[^"]*' "$file" | cut -d '"' -f4)"
+        export DR_LOG_URL_"$NUM"="$(grep -o '"logURL":"[^"]*' "$file" | grep -w "feedlog" | cut -d '"' -f4)"
         export DR_FILES_PUBLISHER_URL_"$NUM"="$(grep -o '"publishURL":"[^"]*' "$file" | cut -d '"' -f4)"
       done
       for file in $(ls drpub*); do