From 2b8ee777b06e4c26aaa281f055d6c3e2f5f1b7b1 Mon Sep 17 00:00:00 2001 From: Tom Noonan II Date: Fri, 9 May 2014 15:54:36 -0500 Subject: [PATCH] Resolve issue where metadata was being discarded too early --- lib/fog/rackspace/models/monitoring/alarms.rb | 4 ++-- lib/fog/rackspace/models/monitoring/checks.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/fog/rackspace/models/monitoring/alarms.rb b/lib/fog/rackspace/models/monitoring/alarms.rb index f053230c1..f1ae3e62d 100644 --- a/lib/fog/rackspace/models/monitoring/alarms.rb +++ b/lib/fog/rackspace/models/monitoring/alarms.rb @@ -13,10 +13,10 @@ module Fog def all(options={}) requires :entity - data = service.list_alarms(entity.identity, options).body['values'] + data = service.list_alarms(entity.identity, options).body self.marker = data['metadata']['next_marker'] - load(data) + load(data['values']) end def get(alarm_id) diff --git a/lib/fog/rackspace/models/monitoring/checks.rb b/lib/fog/rackspace/models/monitoring/checks.rb index c9736fd88..90d77904e 100644 --- a/lib/fog/rackspace/models/monitoring/checks.rb +++ b/lib/fog/rackspace/models/monitoring/checks.rb @@ -13,10 +13,10 @@ module Fog def all(options={}) requires :entity - data = service.list_checks(entity.identity, options).body['values'] + data = service.list_checks(entity.identity, options).body self.marker = data['metadata']['next_marker'] - load(data) + load(data['values']) end def get(check_id)