puppetlabs / puppetlabs-node_manager

Create and manage PE node groups as resources.
Apache License 2.0
10 stars 21 forks source link

Fix Net::Http::Get constant error #37

Closed natemccurdy closed 6 years ago

natemccurdy commented 6 years ago

Prior to this, on newer Puppet Enterprise versions (2017.3) using the node_group resource would throw an error message as shown below. This apparently has to do with jruby not being able to handle Object.const_get with leading '::' (https://github.com/jruby/jruby/issues/1487).

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation
Error: Error while evaluating a Function Call, wrong constant name Net::HTTP::Get

This fixes that by calling the Net::HTTP methods directly.

WhatsARanjit commented 6 years ago

Ref: https://github.com/phrase/phraseapp-ruby/issues/9