Merge pull request #464 from mesosphere/ssh-user-fix

Don't use core as the user when an ssh config is provided
This commit is contained in:
tamarrow
2016-02-16 18:22:06 -08:00

View File

@@ -271,9 +271,14 @@ def _log_marathon(follow, lines, ssh_config_file):
leader_ip = marathon.create_client().get_leader().split(':')[0]
cmd = ("ssh {0}core@{1} " +
"journalctl {2}-u dcos-marathon").format(
user_string = 'core@'
if ssh_config_file:
user_string = ''
cmd = ("ssh {0}{1}{2} " +
"journalctl {3}-u dcos-marathon").format(
ssh_options,
user_string,
leader_ip,
journalctl_args)