Skip to content

Instantly share code, notes, and snippets.

@akatz

akatz/as.rb Secret

Created August 1, 2013 18:53
Show Gist options
  • Save akatz/798561a1f893b8a6750f to your computer and use it in GitHub Desktop.
Save akatz/798561a1f893b8a6750f to your computer and use it in GitHub Desktop.
autoscaler instances not scoped to specific autoscaler
[40] pry(#<AutoScalerIntrospector>):1> group = Fog::AWS::AutoScaling.new(connection_info).groups.last ; nil
=> nil
[41] pry(#<AutoScalerIntrospector>):1> group.instances.size
=> 5
[42] pry(#<AutoScalerIntrospector>):1> group.instances.reject {|x| x.auto_scaling_group_name != group.id }.size
=> 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment