summaryrefslogtreecommitdiff
path: root/lib/puppet/parser
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/parser')
-rw-r--r--lib/puppet/parser/functions/trocla_set.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/puppet/parser/functions/trocla_set.rb b/lib/puppet/parser/functions/trocla_set.rb
index 5b6079a..c3c9b49 100644
--- a/lib/puppet/parser/functions/trocla_set.rb
+++ b/lib/puppet/parser/functions/trocla_set.rb
@@ -50,9 +50,7 @@ trocla, for example via cli.
configfile = File.join(File.dirname(Puppet.settings[:config]), "troclarc.yaml")
raise(Puppet::ParseError, "Trocla config file #{configfile} not readable") unless File.exist?(configfile)
- raise(Puppet::ParseError, "You need rubygems to use Trocla") unless Puppet.features.rubygems?
-
- require 'rubygems'
+
require 'trocla'
result = (trocla=Trocla.new(configfile)).set_password(key,format,value)