lib/beaker-answers/pe_conf.rb in beaker-answers-0.14.0 vs lib/beaker-answers/pe_conf.rb in beaker-answers-0.15.0

- old
+ new

@@ -119,10 +119,14 @@ conf end # Collect a uniq array of all host platforms modified to pe_repo class format platforms = hosts.map do |h| - h['platform'].gsub(/-/, '_').gsub(/\./,'') + platform = h['platform'] + if platform =~ /^windows.*/ + platform = platform =~ /64/ ? 'windows_x86_64' : 'windows_i386' + end + platform.gsub(/-/, '_').gsub(/\./,'') end.uniq pe_conf["agent_platforms"] = platforms pe_conf["meep_schema_version"] = "2.0"