lib/awspec/helper/finder/autoscaling.rb in awspec-0.26.2 vs lib/awspec/helper/finder/autoscaling.rb in awspec-0.27.0
- old
+ new
@@ -1,11 +1,11 @@
module Awspec::Helper
module Finder
module Autoscaling
def find_autoscaling_group(id)
- res = @autoscaling_client.describe_auto_scaling_groups({
- auto_scaling_group_names: [id]
- })
+ res = autoscaling_client.describe_auto_scaling_groups({
+ auto_scaling_group_names: [id]
+ })
res[:auto_scaling_groups].first if res[:auto_scaling_groups].count == 1
end
end
end
end