lib/aws-sdk-cloudwatch/alarm.rb in aws-sdk-cloudwatch-1.0.0 vs lib/aws-sdk-cloudwatch/alarm.rb in aws-sdk-cloudwatch-1.1.0

- old
+ new

@@ -407,13 +407,11 @@ def batch_delete!(options = {}) batch_enum.each do |batch| params = Aws::Util.copy_hash(options) params[:alarm_names] ||= [] batch.each do |item| - params[:alarm_names] << { - name: item.name - } + params[:alarm_names] << item.name end batch[0].client.delete_alarms(params) end nil end @@ -423,13 +421,11 @@ def batch_disable_actions(options = {}) batch_enum.each do |batch| params = Aws::Util.copy_hash(options) params[:alarm_names] ||= [] batch.each do |item| - params[:alarm_names] << { - name: item.name - } + params[:alarm_names] << item.name end batch[0].client.disable_alarm_actions(params) end nil end @@ -439,12 +435,10 @@ def batch_enable_actions(options = {}) batch_enum.each do |batch| params = Aws::Util.copy_hash(options) params[:alarm_names] ||= [] batch.each do |item| - params[:alarm_names] << { - name: item.name - } + params[:alarm_names] << item.name end batch[0].client.enable_alarm_actions(params) end nil end