Skip to content
This repository was archived by the owner on Jan 17, 2021. It is now read-only.

Commit 8c72965

Browse files
committed
Return not the <IP>, but the <user@IP> for GCP instances
Signed-off-by: Sahil Soni <[email protected]>
1 parent 1b15b2b commit 8c72965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sshcode.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -564,5 +564,5 @@ func parseGCPSSHCmd(instance string) (ip, sshFlags string, err error) {
564564
return "", "", xerrors.Errorf("parsed invalid ip address %v", ip)
565565
}
566566

567-
return ip, sshFlags, nil
567+
return strings.TrimSpace(userIP), sshFlags, nil
568568
}

0 commit comments

Comments
 (0)