lib/standup/ec2/instance.rb in standup-0.6.5 vs lib/standup/ec2/instance.rb in standup-0.6.6

- old
+ new

@@ -71,10 +71,10 @@ def self.build_info ritem, item return :external_ip => item.ipAddress, :internal_ip => item.privateIpAddress, :state => item.instanceState.name.to_sym, :architecture => item.architecture, - :security_groups => ritem.groupSet.item.map{|i| SecurityGroup.new(i.groupId)} + :security_groups => ritem.groupSet ? ritem.groupSet.item.map{|i| SecurityGroup.new(i.groupId)} : [] end end end end