summaryrefslogtreecommitdiffstats
path: root/lib/puppet/network/http/api
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@puppetlabs.com>2011-05-12 14:26:49 -0700
committerDaniel Pittman <daniel@puppetlabs.com>2011-05-12 14:26:49 -0700
commit704623cb95aacb0544609620994dc36f61a4b463 (patch)
tree6706dc7afa05bf4bbffb2ab7e616717fb6af0c86 /lib/puppet/network/http/api
parent9d73b73594d4bf9fe4e8abb369ffc5887b15f4ec (diff)
parentc21539fe2205fc61ca9e0a49b3b2702e76931632 (diff)
Merge branch '2.7.next' into next
Diffstat (limited to 'lib/puppet/network/http/api')
-rw-r--r--lib/puppet/network/http/api/v1.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/network/http/api/v1.rb b/lib/puppet/network/http/api/v1.rb
index 61307f01e..388d54961 100644
--- a/lib/puppet/network/http/api/v1.rb
+++ b/lib/puppet/network/http/api/v1.rb
@@ -30,7 +30,7 @@ module Puppet::Network::HTTP::API::V1
method = indirection_method(http_method, indirection)
- params[:environment] = environment
+ params[:environment] = Puppet::Node::Environment.new(environment)
raise ArgumentError, "No request key specified in #{uri}" if key == "" or key.nil?