Merge pull request #5899 from jjneely/ec2.py

ec2.py: Make sure ec2_placement gets handled correctly
This commit is contained in:
Michael DeHaan 2014-03-11 10:25:01 -05:00
commit ab80d1c62b

View file

@ -510,6 +510,8 @@ class Ec2Inventory(object):
instance_vars[key] = ''
elif key == 'ec2_region':
instance_vars[key] = value.name
elif key == 'ec2__placement':
instance_vars['ec2_placement'] = value.zone
elif key == 'ec2_tags':
for k, v in value.iteritems():
key = self.to_safe('ec2_tag_' + k)