Skip to content

Commit

Permalink
Added DMLC_INTERFACE env var passing to ssh launcher (apache#297)
Browse files Browse the repository at this point in the history
* Added DMLC_INTERFACE env var passing to ssh launcher

* Shorter line
  • Loading branch information
ptrendx authored and piiswrong committed Aug 24, 2017
1 parent e880afe commit 87a0c16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tracker/dmlc_tracker/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ def sync_dir(local_dir, slave_node, slave_dir):
def get_env(pass_envs):
envs = []
# get system envs
keys = ['OMP_NUM_THREADS', 'KMP_AFFINITY', 'LD_LIBRARY_PATH', 'AWS_ACCESS_KEY_ID', 'AWS_SECRET_ACCESS_KEY']
keys = ['OMP_NUM_THREADS', 'KMP_AFFINITY', 'LD_LIBRARY_PATH', 'AWS_ACCESS_KEY_ID',
'AWS_SECRET_ACCESS_KEY', 'DMLC_INTERFACE']
for k in keys:
v = os.getenv(k)
if v is not None:
Expand Down

0 comments on commit 87a0c16

Please sign in to comment.