From 35740c141d4bdf13312b0b7d8cc7263de319fa02 Mon Sep 17 00:00:00 2001 From: Rohit Jnagal Date: Tue, 23 Dec 2014 06:22:08 +0000 Subject: [PATCH] Relax the kernel version string format. It now parses versions like major.minor-* as used by some VMs. --- validate/validate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validate/validate.go b/validate/validate.go index 9c52b04e..a1b85f91 100644 --- a/validate/validate.go +++ b/validate/validate.go @@ -36,7 +36,7 @@ const Supported = "[Supported, but not recommended]" const Unsupported = "[Unsupported]" const Recommended = "[Supported and recommended]" const Unknown = "[Unknown]" -const VersionFormat = "%d.%d.%s" +const VersionFormat = "%d.%d%s" const OutputFormat = "%s: %s\n\t%s\n\n" func getMajorMinor(version string) (int, int, error) {