Project

General

Profile

Revision 370106bb

Added by Thomas McKay about 9 years ago

foreman-env - out / in / update working

View differences:

lib/hammer_cli_csv/operating_systems.rb
60 60
      CSV.open(csv_file, 'wb') do |csv|
61 61
        csv << ['Name','Count','Major','Minor', 'Family']
62 62
        @operatingsystem_api.index({}, HEADERS)[0].each do |operatingsystem|
63
          name = operatingsystem['operatingsystem']['name']
63
          operatingsystem = operatingsystem['operatingsystem']
64
          name = operatingsystem['name']
64 65
          count = 1
65
          major = operatingsystem['operatingsystem']['major']
66
          minor = operatingsystem['operatingsystem']['minor']
67
          family = operatingsystem['operatingsystem']['family']
66
          major = operatingsystem['major']
67
          minor = operatingsystem['minor']
68
          family = operatingsystem['family']
68 69
          csv << [name, count, major, minor, family]
69 70
        end
70 71
      end

Also available in: Unified diff