Skip to content

Commit 7ceef17

Browse files
Gunasekar KGunasekar K
Gunasekar K
authored and
Gunasekar K
committed
updating the configuration file access change
1 parent d103985 commit 7ceef17

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

buildenv.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ uploading_buildenvvar()
4242
do
4343
o=$IFS
4444
IFS=$(echo -en "\n\b")
45-
envvars=$( cat $listname.json | jq -r ' .circlecibuildvar ' | jq ' . | to_entries[] | { "name": .key , "value": .value } ' | jq -s . )
45+
envvars=$( cat $listname.json | jq -r ' . ' | jq ' . | to_entries[] | { "name": .key , "value": .value } ' | jq -s . )
4646
for s in $(echo $envvars | jq -c ".[]" ); do
4747
#echo $envvars
4848
varname=$(echo $s| jq -r ".name")

master_deploy.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ for listname in $Buffer_seclist;
248248
do
249249
local o=$IFS
250250
IFS=$(echo -en "\n\b")
251-
envvars=$( cat $listname.json | jq -r ' .app_var ' | jq ' . | to_entries[] | { "name": .key , "value": .value } ' | jq -s . )
251+
envvars=$( cat $listname.json | jq -r ' . ' | jq ' . | to_entries[] | { "name": .key , "value": .value } ' | jq -s . )
252252
log "vars are fetched"
253253

254254
for s in $(echo $envvars | jq -c ".[]" ); do
@@ -539,12 +539,12 @@ configure_Lambda_template()
539539
then
540540
mkdir -p /home/circleci/project/config
541541
Buffer_seclist=$(echo $SEC_LIST | sed 's/,/ /g')
542-
envvars=$( cat $listname.json | jq -c ' .app_var ')
542+
#envvars=$( cat $listname.json | jq -c ' .app_var ')
543543
for listname in $Buffer_seclist;
544544
do
545545
o=$IFS
546546
IFS=$(echo -en "\n\b")
547-
envvars=$( cat $listname.json | jq -c ' .app_var ')
547+
envvars=$( cat $listname.json | jq -c ' . ')
548548
echo "$envvars" > /home/circleci/project/config/$AWS_LAMBDA_STAGE.json
549549
sed -i 's/\\n/\\\\n/g' /home/circleci/project/config/$AWS_LAMBDA_STAGE.json
550550
#yq r $listname.json >$listname.yml
@@ -659,7 +659,7 @@ fi
659659

660660
download_envfile
661661
#decrypt_fileenc
662-
uploading_envvar
662+
#uploading_envvar
663663

664664

665665

0 commit comments

Comments
 (0)