Skip to content

Commit

Permalink
remove 0 values from env:inventory report
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrock committed Feb 9, 2018
1 parent c5e6e55 commit b602aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/ext_management_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ def self.output_inventory_status
]
end
data = data.sort_by { |e| [e[1], e[2], e[3]] }

data = data.map { |row| row.map { |col| col.to_s == "0" ? nil : col } }
header = %w(region zone ems clusters hosts vms storages)
puts data.unshift(header).tableize unless data.empty?
end
Expand Down

0 comments on commit b602aed

Please sign in to comment.