Greetings!

Please review the pull request #60: (#9593) Require rubygems to handle json output for ruby 1.8.7. opened by (kbarber)

Some more information about the pull request:

  • Opened: Mon Sep 19 14:12:10 UTC 2011
  • Based on: puppetlabs:master (ef0a9aa3e36b3714439e9e0c23828313075ba411)
  • Requested merge: kbarber:ticket/9593-json_output (3f1a163544d6ba19c9548aa0d628c33e81034b59)

Description:

Thanks!
The Pull Request Bot

Diff follows:

diff --git a/lib/facter/application.rb b/lib/facter/application.rb
index 9b6da1d..3f0f375 100644
--- a/lib/facter/application.rb
+++ b/lib/facter/application.rb
@@ -35,6 +35,7 @@ module Facter
       # Print the facts as JSON and exit
       if options[:json]
         begin
+          require 'rubygems'
           require 'json'
           puts JSON.dump(facts)
           exit(0)

    

--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to