def tags(instance)
      return [] if instance.groupSet.nil? || instance.groupSet.item.empty?
      instance.groupSet.item.collect{|g| g.groupId }.select {|s| s.start_with? "#poolparty"}
    end
def tags(instance)
      return [] if instance.groupSet.nil? || instance.groupSet.item.empty?
      instance.groupSet.item.collect{|g| g.groupId }.select {|s| s.start_with? "#poolparty"}
    end
=== Description

 Return all the security groups of the instance that are prefixed with #poolparty.

 These are special security groups used only for tagging

 === Parameters
   instance    -   An ec2 instance as returned from describe_instances