inspec-compliance: style

This commit is contained in:
Stephan Renatus 2016-03-23 14:36:46 +01:00 committed by Christoph Hartmann
parent e0bd2bb595
commit 7b740a2f9d

View file

@ -85,14 +85,12 @@ module Compliance
if !data.nil?
profiles = JSON.parse(data)
val = []
# iterate over profiles
profiles.each_key do |org|
profiles[org].each_key do |name|
val.push({ org: org, name: name })
profiles.map do |owner, ps|
ps.keys.map do |name|
{ org: owner, name: name }
end
end
val
end.flatten
else
[]
end