Skip to content

Commit

Permalink
Merge pull request #17 from Dynatrace/add-python3-support
Browse files Browse the repository at this point in the history
Add python3 support
  • Loading branch information
arthfl authored Feb 11, 2020
2 parents 9c0bf32 + 3ad63ec commit 8af0461
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -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=$(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)

VERSION=$(python -c 'import json,sys; print json.load(sys.stdin)["version"]' <$DT_MANIFEST)
VERSION=$(python -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}"
Expand Down

0 comments on commit 8af0461

Please sign in to comment.