Skip to content

Commit 29cc465

Browse files
committed
(spec) fix hiera layers path used for hiera class inclusion rules
1 parent 9d7d7ff commit 29cc465

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/unit/hiera_class_inclusion_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# extract public hiera hierachy
77
def non_role_layers
88
hc = YAML.load_file(control_hiera_config, aliases: true)
9-
hc['hierarchy'][1]['paths'].grep_v(%r{role})
9+
hc['hierarchy'].first['paths'].grep_v(%r{role})
1010
end
1111

1212
hieradata_pathname = Pathname.new(control_hieradata_path)

0 commit comments

Comments
 (0)