File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments