Skip to content

Commit

Permalink
Merge pull request #15 from synack/instanceid
Browse files Browse the repository at this point in the history
Instanceid
  • Loading branch information
JeremyGrosser committed Aug 11, 2011
2 parents de7c6db + 40cf4de commit 8df45a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scripts/clusto-barker-consumer
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ def barker_callback(body):
clusto.begin_transaction()
server = clusto.get_or_create(ec2['instance-id'], BasicServer)

if not clusto.attr_values(key='ec2', subkey='instance-id'):
clusto.set_attr(key='ec2', subkey='instance-id', value=ec2['instance-id'])

zone = clusto.get(ec2['placement'])
if not zone:
zone = EC2Zone(ec2['placement'], placement=ec2['placement'])
Expand Down

0 comments on commit 8df45a2

Please sign in to comment.