Skip to content

Commit 1f2c0c1

Browse files
Make curl silent
1 parent 4a6b229 commit 1f2c0c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoscaling/create_cluster.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ if [ $status -eq 0 ]
7878
then
7979
ERROR_MSG=`cat $folder/logs/create_$2_${date}.log | grep Error:`
8080
fi
81-
comp_tmp=`curl -H "Authorization: Bearer Oracle" -L http://169.254.169.254/opc/v2/instance/ | jq .compartmentId`
81+
comp_tmp=`curl -sH "Authorization: Bearer Oracle" -L http://169.254.169.254/opc/v2/instance/ | jq .compartmentId`
8282
compartment_ocid=${comp_tmp:1:-1}
8383

84-
region_tmp=`curl -H "Authorization: Bearer Oracle" -L http://169.254.169.254/opc/v2/instance/ | jq .region`
84+
region_tmp=`curl -sH "Authorization: Bearer Oracle" -L http://169.254.169.254/opc/v2/instance/ | jq .region`
8585
region=${region_tmp:1:-1}
8686
inst_pool_ocid=`oci compute-management instance-pool list --compartment-id $compartment_ocid --auth instance_principal --region $region --all --display-name $2 | jq '.data | sort_by(."time-created" | split(".") | .[0] | strptime("%Y-%m-%dT%H:%M:%S")) |.[-1] .id'` >> $folder/logs/create_$2_${date}.log 2>&1
8787
requestID=`oci work-requests work-request list --compartment-id $compartment_ocid --auth instance_principal --region $region --all --resource-id ${inst_pool_ocid:1:-1} | jq '.data | .[] | select(."operation-type"=="LaunchInstancesInPool") | .id'` >> $folder/logs/create_$2_${date}.log 2>&1

0 commit comments

Comments
 (0)