Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Commit 48ec6d1

Browse files
committed
format
1 parent 21c5c21 commit 48ec6d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/marketplace_setup.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ NC='\033[0m'
1212

1313
# Get tenancy id via CLI
1414
tenancy_id=$(oci iam availability-domain list | jq -r ' .data[0]."compartment-id"')
15+
1516
# Alternatives that work now, but may not in the future
1617
# tenancy_id=$(grep tenancy $OCI_CLI_CONFIG_FILE | head -n 1 | cut -d'=' -f2)
1718
# oci iam compartment list | jq -cr '[.data[] | select(."compartment-id" | contains("tenancy"))] | .[0]."compartment-id"'
18-
# Alternative without jq is tenancy_id=$(oci iam availability-domain list --query 'data[0]."compartment-id"' --raw-output)
1919

20+
# Alternative without jq is tenancy_id=$(oci iam availability-domain list --query 'data[0]."compartment-id"' --raw-output)
2021
if [ -z "$tenancy_id" ]
2122
then
2223
echo "Error: Unable to discover tenancy ocid, exiting"

0 commit comments

Comments
 (0)