This commit is contained in:
parent
036aa4fc28
commit
7f07a50bfd
@ -291,7 +291,8 @@ func (c *Container) GetHostKey() (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if hostKeyRaw != nil {
|
if hostKeyRaw != nil {
|
||||||
parts := strings.SplitN(string(*hostKeyRaw), " ", 1)
|
hostKeyRawString := strings.TrimSpace(string(*hostKeyRaw))
|
||||||
|
parts := strings.SplitN(hostKeyRawString, " ", 1)
|
||||||
if len(parts) > 1 {
|
if len(parts) > 1 {
|
||||||
return parts[1], nil
|
return parts[1], nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user