anchor.diff:  
           qs = urllib.urlencode({'query': query})
           res = urllib2.urlopen('https://puppetdb.<%= @app_domain_internal %>/v2/{0}?{1}'.format(endpoint, qs))
  -        hosts = json.load(res)
  +        instance_ids = json.load(res)
  +
  +        hosts = []
  +
  +        for instance in instance_ids:
  +            hosts.append(get_hostname_by_id(instance[host_key]))
   
       else:
           hosts = ec2_nodes(stackname)
  
positive.code: 
      return(hosts)
  
  def main():
      opts, args = parser.parse_args()
  
  
negative.code:         hosts = [random.choice(hosts)]
  
      for host in hosts:
          print(host)
  
  parser = OptionParser(description='List nodes in this environment')
  
  