diff options
author | mh <mh@immerda.ch> | 2015-08-12 08:42:35 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2015-08-12 08:42:35 +0200 |
commit | 0e320508328db93fc2ca8aa29eb1ed22e0f0f22a (patch) | |
tree | 75571eef2654a8ca725624b94221548cfa610922 /lib/puppet/util/trocla_helper.rb | |
parent | ae723cfc50707b79891bc2eac99d10d5b044d53e (diff) |
whitespace cleanup
Diffstat (limited to 'lib/puppet/util/trocla_helper.rb')
-rw-r--r-- | lib/puppet/util/trocla_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/util/trocla_helper.rb b/lib/puppet/util/trocla_helper.rb index 64ef859..94670ae 100644 --- a/lib/puppet/util/trocla_helper.rb +++ b/lib/puppet/util/trocla_helper.rb @@ -16,7 +16,7 @@ module Puppet::Util::TroclaHelper key = args[0] || raise(Puppet::ParseError, "You need to pass at least a key as an argument!") format = args[1] || 'plain' options = args[2] || {} - + if options.is_a?(String) require 'yaml' options = YAML.load(options) @@ -27,7 +27,7 @@ module Puppet::Util::TroclaHelper raise(Puppet::ParseError, "Trocla config file #{configfile} is not readable") unless File.exist?(configfile) require 'trocla' - + has_options ? Trocla.new(configfile).send(trocla_func, key, format, options) : Trocla.new(configfile).send(trocla_func, key, format) end module_function :trocla |