Skip to content

Commit

Permalink
[util] Incorporating security-groups into tags collected from ec2
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnLZeller committed Sep 25, 2015
1 parent 76459c8 commit ea34d32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions util.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ def get_tags(agentConfig):
tag_object = connection.get_all_tags({'resource-id': EC2.metadata['instance-id']})

EC2_tags = [u"%s:%s" % (tag.name, tag.value) for tag in tag_object]
EC2_tags.append(u"security-group-name:{0}".format(EC2.metadata['security-groups']))

except Exception:
log.exception("Problem retrieving custom EC2 tags")
Expand Down

0 comments on commit ea34d32

Please sign in to comment.