Fix compiling pkg/parsers/operatingsystem on unix

fmt.Error does not exist. I've replaced it with errors.New.

Signed-off-by: Simon Barendse <simon.barendse@gmail.com>
This commit is contained in:
Simon Barendse 2019-08-29 18:43:07 +02:00
parent 7ce0e26c16
commit fa29ff2212
No known key found for this signature in database
GPG key ID: EC60DC2967B22C7F

View file

@ -4,7 +4,6 @@ package operatingsystem // import "github.com/docker/docker/pkg/parsers/operatin
import (
"errors"
"fmt"
"os/exec"
)
@ -21,7 +20,7 @@ func GetOperatingSystem() (string, error) {
// GetOperatingSystemVersion gets the version of the current operating system, as a string.
func GetOperatingSystemVersion() (string, error) {
// there's no standard unix way of getting this, sadly...
return "", fmt.Error("Unsupported on generic unix")
return "", errors.New("Unsupported on generic unix")
}
// IsContainerized returns true if we are running inside a container.