drivers/exoscale/exoscale.go
func (d *Driver) GetSSHUsername() string {
	if d.SSHUser == "" {
		name := strings.ToLower(d.Image)

		if strings.Contains(name, "ubuntu") {
			return "ubuntu"
		}
		if strings.Contains(name, "centos") {
			return "centos"
		}
		if strings.Contains(name, "redhat") {
			return "cloud-user"
		}
		if strings.Contains(name, "fedora") {
			return "fedora"
		}
		if strings.Contains(name, "coreos") {
			return "core"
		}
		if strings.Contains(name, "debian") {
			return "debian"
		}
		return defaultSSHUser
	}

	return d.SSHUser
}
func (d *Driver) GetSSHUsername() string {
	if d.SSHUser == "" {
		name := strings.ToLower(d.Image)

		if strings.Contains(name, "ubuntu") {
			return "ubuntu"
		}
		if strings.Contains(name, "centos") {
			return "centos"
		}
		if strings.Contains(name, "redhat") {
			return "cloud-user"
		}
		if strings.Contains(name, "fedora") {
			return "fedora"
		}
		if strings.Contains(name, "coreos") {
			return "core"
		}
		if strings.Contains(name, "debian") {
			return "debian"
		}
		return defaultSSHUser
	}

	return d.SSHUser
}
func ( d * Driver ) GetSSHUsername ( ) string { if d . SSHUser == " " { name := strings . ToLower ( d . Image ) if strings . Contains ( name , " " ) { return " " } if strings . Contains ( name , " " ) { return " " } if strings . Contains ( name , " " ) { return " " } if strings . Contains ( name , " " ) { return " " } if strings . Contains ( name , " " ) { return " " } if strings . Contains ( name , " " ) { return " " } return defaultSSHUser } return d . SSHUser }
// GetSSHUsername returns the username to use with SSH
GetSSHUsername returns the username to use with SSH