Support prerelease versions of podman binary

It was trying to parse the newline character
pull/8575/head
Anders F Björklund 2020-06-26 21:28:43 +02:00
parent 7d79241ea5
commit 9d98e858a3
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ func status() registry.State {
cmd.Env = append(os.Environ(), "LANG=C", "LC_ALL=C") // sudo is localized
}
o, err := cmd.Output()
output := string(o)
output := strings.TrimSpace(string(o))
if err == nil {
glog.Infof("podman version: %s", output)