From 090957c44f428e13f4f0898f27e017196ad86fda Mon Sep 17 00:00:00 2001 From: "LaMont, William (wl2432)" Date: Thu, 17 Jan 2019 13:48:07 -0500 Subject: merge of v15 changes to onap Issue-ID: AAI-2088 Change-Id: I588499af58d0e799d860b2b4362da7c48050fafd Signed-off-by: LaMont, William (wl2432) Signed-off-by: Kajur, Harish (vk250x) --- src/main/scripts/dynamicPayloadGenerator.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main/scripts/dynamicPayloadGenerator.sh') diff --git a/src/main/scripts/dynamicPayloadGenerator.sh b/src/main/scripts/dynamicPayloadGenerator.sh index 3d30790..2140354 100644 --- a/src/main/scripts/dynamicPayloadGenerator.sh +++ b/src/main/scripts/dynamicPayloadGenerator.sh @@ -136,15 +136,15 @@ while getopts ":f:s:d:n:c:i:m:o:p:" opt; do echo 'Done' -set -A nodes pserver cloud-region availability-zone tenant zone complex - +set -A nodes customer service-subscription service pserver cloud-region availability-zone tenant zone complex #Create empty partial file > $INPUT_DATASNAPSHOT_FILE".partial" for nodeType in ${nodes[@]} - do - grep "aai-node-type.*\"value\":\"$nodeType\"" $INPUT_DATASNAPSHOT_FILE >>$INPUT_DATASNAPSHOT_FILE'.partial' - done + do + grep "aai-node-type.*\"value\":\"$nodeType\"" $INPUT_DATASNAPSHOT_FILE'.P'* >>$INPUT_DATASNAPSHOT_FILE'.out' + cat $INPUT_DATASNAPSHOT_FILE'.out' | cut -d':' -f2- > $INPUT_DATASNAPSHOT_FILE'.partial' + done execute_spring_jar org.onap.aai.dbgen.DynamicPayloadGenerator ${PROJECT_HOME}/resources/dynamicPayloadGenerator-logback.xml -s ${VALIDATE_SCHEMA} \ -- cgit 1.2.3-korg