refactor(chalice): use format instead of % for sourcemaps-url (#2128)
This commit is contained in:
parent
29ee1cbb1f
commit
76c3ed9966
3 changed files with 4 additions and 4 deletions
|
|
@ -6,9 +6,9 @@ SMR_URL = config("sourcemaps_reader")
|
||||||
|
|
||||||
if '%s' in SMR_URL:
|
if '%s' in SMR_URL:
|
||||||
if config("SMR_KEY", default=None) is not None:
|
if config("SMR_KEY", default=None) is not None:
|
||||||
SMR_URL = SMR_URL % config("SMR_KEY")
|
SMR_URL = SMR_URL.format(config("SMR_KEY"))
|
||||||
else:
|
else:
|
||||||
SMR_URL = SMR_URL % "smr"
|
SMR_URL = SMR_URL.format("smr")
|
||||||
|
|
||||||
|
|
||||||
def get_original_trace(key, positions, is_url=False):
|
def get_original_trace(key, positions, is_url=False):
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,6 @@ sessions_bucket=mobs
|
||||||
sessions_region=us-east-1
|
sessions_region=us-east-1
|
||||||
SITE_URL=
|
SITE_URL=
|
||||||
sourcemaps_bucket=sourcemaps
|
sourcemaps_bucket=sourcemaps
|
||||||
sourcemaps_reader=http://sourcemapreader-openreplay.app.svc.cluster.local:9000/sourcemaps/%s/sourcemaps
|
sourcemaps_reader=http://sourcemapreader-openreplay.app.svc.cluster.local:9000/sourcemaps/{}/sourcemaps
|
||||||
STAGE=default-foss
|
STAGE=default-foss
|
||||||
TZ=UTC
|
TZ=UTC
|
||||||
|
|
@ -77,6 +77,6 @@ sessions_bucket=mobs
|
||||||
sessions_region=us-east-1
|
sessions_region=us-east-1
|
||||||
SITE_URL=
|
SITE_URL=
|
||||||
sourcemaps_bucket=sourcemaps
|
sourcemaps_bucket=sourcemaps
|
||||||
sourcemaps_reader=http://sourcemapreader-openreplay.app.svc.cluster.local:9000/sourcemaps/%s/sourcemaps
|
sourcemaps_reader=http://sourcemapreader-openreplay.app.svc.cluster.local:9000/sourcemaps/{}/sourcemaps
|
||||||
TRACE_PERIOD=300
|
TRACE_PERIOD=300
|
||||||
TZ=UTC
|
TZ=UTC
|
||||||
Loading…
Add table
Reference in a new issue