diff --git a/lib/hiera/backend/vault_backend.rb b/lib/hiera/backend/vault_backend.rb index 8cba891..2b67615 100644 --- a/lib/hiera/backend/vault_backend.rb +++ b/lib/hiera/backend/vault_backend.rb @@ -9,7 +9,7 @@ def initialize() @config = Config[:vault] @config[:mounts] ||= {} - @config[:mounts][:generic] ||= ['secret'] + @config[:mounts][:generic] ||= @config[:mounts]['generic'] || ['secret'] @config[:default_field_parse] ||= 'string' # valid values: 'string', 'json' if not ['string','json'].include?(@config[:default_field_parse])