Fallback to attributes in test code for reporters

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
Clinton Wolfe 2019-02-20 21:22:51 -05:00
parent 947cf32307
commit 83cdcad135

View file

@ -107,7 +107,7 @@ module Inspec::Reporters
copyright: p[:copyright],
copyright_email: p[:copyright_email],
supports: p[:supports],
attributes: p[:inputs], # TODO: rename exposed field to inputs, see #3802
attributes: (p[:inputs] ? p[:inputs] : p[:attributes]), # TODO: rename exposed field to inputs, see #3802
parent_profile: p[:parent_profile],
depends: p[:depends],
groups: profile_groups(p),