|
|
|
|
@ -148,7 +148,7 @@ func normalizeVersion(version string) (string, error) {
|
|
|
|
|
i, err := strconv.Atoi(version)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return "", fmt.Errorf(
|
|
|
|
|
"VMWare WS version '%s' is not numeric", version)
|
|
|
|
|
"VMWare version '%s' is not numeric", version)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return fmt.Sprintf("%02d", i), nil
|
|
|
|
|
@ -167,7 +167,7 @@ func compareVersions(versionFound string, versionWanted string) error {
|
|
|
|
|
|
|
|
|
|
if found < wanted {
|
|
|
|
|
return fmt.Errorf(
|
|
|
|
|
"VMWare WS %s, or greater, is required. Found version: %s", versionWanted, versionFound)
|
|
|
|
|
"VMWare WS version %s, or greater, is required. Found version: %s", versionWanted, versionFound)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
|