Skip to content

Commit 28ae3d6

Browse files
authored
Merge pull request #1667 from lsst-it/bugfix/fix-hiera-class-inclusion-spec
(spec) fix hiera layers path used for hiera class inclusion rules
2 parents 9d7d7ff + 29cc465 commit 28ae3d6

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)