lib/fog/aws/models/ec2/security_groups.rb in fog-0.0.47 vs lib/fog/aws/models/ec2/security_groups.rb in fog-0.0.48

- old
+ new

@@ -17,18 +17,11 @@ super end def all(group_name = @group_name) @group_name = group_name - if @loaded - clear - end - @loaded = true data = connection.describe_security_groups(group_name).body - data['securityGroupInfo'].each do |security_group| - self << new(security_group) - end - self + load(data['securityGroupInfo']) end def get(group_name) if group_name all(group_name).first