Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Do not require JSON or rubygems, PSON is already available.

  • Loading branch information...
commit 24a1c2e6b283aee0fa5c160f42e46588c73267f9 1 parent c70659d
@loe authored
View
8 lib/puppet/provider/boundary_meter/boundary_meter.rb
@@ -19,10 +19,8 @@
# limitations under the License.
#
-require "rubygems"
require "uri"
require "net/https"
-require "json"
require "base64"
module Boundary
@@ -59,12 +57,12 @@ def create_meter(resource)
begin
url = build_url(resource, :create)
headers = generate_headers(resource)
- body = {:name => resource[:name]}.to_json
+ body = {:name => resource[:name]}.to_pson
Puppet.info("Creating meter #{resource[:name]}")
response = http_request(:post, url, headers, body)
- body = JSON.parse(response.body)
+ body = PSON.parse(response.body)
@meter_id = body["id"]
@tags = body["tags"]
download_request("key", resource)
@@ -97,7 +95,7 @@ def get_meter(data, resource)
response = http_request(:get, url, headers)
if response
- body = JSON.parse(response.body)
+ body = PSON.parse(response.body)
if body[0]
if body[0]["#{data}"]
body[0]["#{data}"]
View
5 manifests/dependencies.pp
@@ -20,11 +20,6 @@
class bprobe::dependencies {
- package { 'json':
- ensure => latest,
- provider => gem,
- }
-
case $operatingsystem {
'redhat', 'centos': {
Please sign in to comment.
Something went wrong with that request. Please try again.