File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ TNS_WALLET_STR="(MY_WALLET_DIRECTORY="$TNS_ADMIN")"
30
30
# Create compartment
31
31
ROOT_COMPARTMENT_OCID=$( oci iam compartment list --all --compartment-id-in-subtree true --access-level ACCESSIBLE --include-root --raw-output --query " data[?contains(\" id\" ,'tenancy')].id | [0]" )
32
32
33
- if [[ -z $( oci iam compartment list --all | jq -r " .data[] | select(.name == \" ${COMPARTMENT} \" ) | .id" ) ]]; then
33
+ if [[ -z $( oci iam compartment list --all --compartment-id-in-subtree true | jq -r " .data[] | select(.name == \" ${COMPARTMENT} \" ) | .id" ) ]]; then
34
34
oci iam compartment create --name ${COMPARTMENT} -c ${ROOT_COMPARTMENT_OCID} --description " Oracle Advanced Queue workflow" --wait-for-state ACTIVE
35
35
echo " COMPARTMENT '${COMPARTMENT} ' CREATED."
36
36
else
You can’t perform that action at this time.
0 commit comments