Skip to content

Commit

Permalink
Fixed missing user error
Browse files Browse the repository at this point in the history
  • Loading branch information
nily-dti committed Jul 9, 2020
1 parent a87874f commit f2384c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tracker/commands/experiment_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def create(ctx, args):
"""Creates a new experiment.
"""

raise NotImplementedError

log.info("Creating '{}' experiment".format(args.name))
if args.template_file is not None:
log.info(" Using {} as a template".format(args.template_file))
Expand Down
3 changes: 2 additions & 1 deletion tracker/remotes/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

# -*- coding: utf-8 -*-

import os
import sys

import click
Expand All @@ -23,7 +24,7 @@ def __init__(self, name, config):
self.name = name
self._host = config["host"]
self.port = config.get("port")
self.user = config.get("user")
self.user = config.get("user") or os.getlogin()
self.private_key = config.get("private-key")
self.connect_timeout = config.get("connect-timeout")
self.tracker_home = self._init_tracker_home(config)
Expand Down

0 comments on commit f2384c0

Please sign in to comment.