in libraries/helpers.rb [181:194]
def validate_os_type
case node['platform']
when 'ubuntu'
current_os = "ubuntu#{node['platform_version'].tr('.', '')}"
raise_os_not_match(current_os, node['cluster']['base_os']) if node['cluster']['base_os'] != current_os
when 'amazon'
current_os = "alinux#{node['platform_version'].to_i}"
raise_os_not_match(current_os, node['cluster']['base_os']) if node['cluster']['base_os'] != current_os
when 'centos'
current_os = "centos#{node['platform_version'].to_i}"
raise_os_not_match(current_os, node['cluster']['base_os']) if node['cluster']['base_os'] != current_os
end
end