lib/awspec/helper/finder/autoscaling.rb in awspec-1.25.1 vs lib/awspec/helper/finder/autoscaling.rb in awspec-1.25.2
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
module Awspec::Helper
module Finder
module Autoscaling
def find_autoscaling_group(id)
res = autoscaling_client.describe_auto_scaling_groups({
@@ -49,9 +51,10 @@
selected.push(auto_scaling_group) if vpc_zone_identifiers.any? do |vpc_zone_identifier|
subnets.include?(vpc_zone_identifier)
end
end
break if res.next_token.nil?
+
req[:next_token] = res.next_token
end
selected
end
end