diff --git a/bin/compile b/bin/compile index 1940f56..58b161c 100644 --- a/bin/compile +++ b/bin/compile @@ -112,11 +112,11 @@ puts_step "Configuring Dynatrace Oneagent..." # determine default values for connection parameters DT_MANIFEST="$BUILD_DIR/dynatrace/oneagent/manifest.json" -MANIFEST_TENANT=$(python -c 'import json,sys; print(json.load(sys.stdin)["tenantUUID"])' <$DT_MANIFEST) -MANIFEST_TOKEN=$(python -c 'import json,sys; print(json.load(sys.stdin)["tenantToken"])' <$DT_MANIFEST) -MANIFEST_ENDPOINTS=$(python -c 'import sys, json; print(";".join(json.load(sys.stdin)["communicationEndpoints"]))' <$DT_MANIFEST) +MANIFEST_TENANT=$(python3 -c 'import json,sys; print(json.load(sys.stdin)["tenantUUID"])' <$DT_MANIFEST) +MANIFEST_TOKEN=$(python3 -c 'import json,sys; print(json.load(sys.stdin)["tenantToken"])' <$DT_MANIFEST) +MANIFEST_ENDPOINTS=$(python3 -c 'import sys, json; print(";".join(json.load(sys.stdin)["communicationEndpoints"]))' <$DT_MANIFEST) -VERSION=$(python -c 'import json,sys; print(json.load(sys.stdin)["version"])' <$DT_MANIFEST) +VERSION=$(python3 -c 'import json,sys; print(json.load(sys.stdin)["version"])' <$DT_MANIFEST) # support pipelined deployments by overriding default values set_env "DT_TENANT" "\${DT_TENANT:-$MANIFEST_TENANT}"