Skip to content

Commit

Permalink
Fix for username in hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
jupierce committed Feb 20, 2019
1 parent 8fa949a commit 69aa311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/openshift/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def client_host(hostname=None, port=DEFAULT_SSH_PORT, username=DEFAULT_SSH_USERN
if hostname is None:
hostname = DEFAULT_SSH_HOSTNAME

if '@' in hostname:
if hostname and '@' in hostname:
c.ssh_username, c.ssh_hostname = hostname.split('@', 1)
else:
c.ssh_hostname = hostname
Expand Down

0 comments on commit 69aa311

Please sign in to comment.