mirror of
https://github.com/rancher/os.git
synced 2025-09-08 10:11:46 +00:00
fix default console detection
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
@@ -182,6 +182,10 @@ func CurrentConsole() (console string) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if strings.Contains(image.Name(), "os-console") {
|
||||||
|
console = "default"
|
||||||
|
return
|
||||||
|
}
|
||||||
console = strings.TrimPrefix(strings.TrimSuffix(image.Name(), "console"), "rancher/os-")
|
console = strings.TrimPrefix(strings.TrimSuffix(image.Name(), "console"), "rancher/os-")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user