Skip to content

Commit 43eaea7

Browse files
authored
Merge pull request #153 from github/kpaulisse-hiera-5
Hiera 5 support
2 parents 93df209 + c5bef82 commit 43eaea7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/octocatalog-diff/catalog-util/builddir.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def install_ssl(logger, options)
283283
# @param obj [Hash] Parsed hiera.yaml file
284284
def update_hiera_config_v3(logger, options, obj)
285285
([obj[:backends]].flatten || %w(yaml json)).each do |key|
286-
next unless obj.key?(key.to_sym)
286+
next unless obj.key?(key.to_sym) && !obj[key.to_sym][:datadir].nil?
287287
obj[key.to_sym][:datadir] = hiera_munge(options, obj[key.to_sym][:datadir])
288288

289289
# Make sure the directory exists. If not, log a warning. This is *probably* a setup error, but we don't

0 commit comments

Comments
 (0)