From b44f1b2c59eca50f7c738e71f952e2e441ec0494 Mon Sep 17 00:00:00 2001 From: Frederick Cheung Date: Sun, 15 Jan 2012 18:09:04 +0000 Subject: [PATCH] enable_metrics_collection requires a granularity argument (1Minute is the only legal value) --- lib/fog/aws/models/auto_scaling/group.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fog/aws/models/auto_scaling/group.rb b/lib/fog/aws/models/auto_scaling/group.rb index 4a9ce71bb..65728ff66 100644 --- a/lib/fog/aws/models/auto_scaling/group.rb +++ b/lib/fog/aws/models/auto_scaling/group.rb @@ -65,9 +65,9 @@ module Fog reload end - def enable_metrics_collection(metrics = {}) + def enable_metrics_collection(granularity = '1Minute', metrics = {}) requires :id - connection.enable_metrics_collection(id, 'Metrics' => metrics) + connection.enable_metrics_collection(id, granularity, 'Metrics' => metrics) reload end