Skip to content

Commit 35f7b36

Browse files
committed
Default MBED_CLOUD_SDK_HOST to HTTPS
1 parent 9666636 commit 35f7b36

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mbed/mbed.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2732,10 +2732,13 @@ def dev_mgmt(toolchain=None, target=None, source=False, profile=False, build=Fal
27322732
args += (['--toolchain', toolchain] if toolchain else [])
27332733
args += (['--mcu', target] if target else [])
27342734
args += (['--build', build_path] if build_path else [])
2735+
env = program.get_env()
2736+
if "MBED_CLOUD_SDK_HOST" not in env:
2737+
env["MBED_CLOUD_SDK_HOST"] = "https://api.us-east-1.mbedcloud.com"
27352738
popen([python_cmd, '-u', script]
27362739
+ args
27372740
+ list(chain.from_iterable(zip(repeat('--source'), source or []))),
2738-
env=program.get_env())
2741+
env=env)
27392742

27402743
# Export command
27412744
@subcommand('export',

0 commit comments

Comments
 (0)