This commit is contained in:
parent
036aa4fc28
commit
7f07a50bfd
1 changed files with 2 additions and 1 deletions
|
@ -291,7 +291,8 @@ func (c *Container) GetHostKey() (string, error) {
|
|||
}
|
||||
|
||||
if hostKeyRaw != nil {
|
||||
parts := strings.SplitN(string(*hostKeyRaw), " ", 1)
|
||||
hostKeyRawString := strings.TrimSpace(string(*hostKeyRaw))
|
||||
parts := strings.SplitN(hostKeyRawString, " ", 1)
|
||||
if len(parts) > 1 {
|
||||
return parts[1], nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue