update IsLikeTraditionalRHEL7() to account for minor versions
This function was erroneously returning false when the version
has a minor version (for ex:7.5). Update to return true
when major version is 7.
@@ -38,6 +38,9 @@ func (os OperatingSystem) IsCoreOSVariant() bool {
// yum based + kickstart/cloud-init (not Ignition).
func (os OperatingSystem) IsLikeTraditionalRHEL7() bool {
// Today nothing else is going to show up with a version ID of 7
+ if len(os.VersionID) > 2 {
+ return strings.HasPrefix(os.VersionID, "7.")
+ }
return os.VersionID == "7"
}
