mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-31 15:53:09 +00:00
Changes as per @abadger
This commit is contained in:
committed by
Daniel Malon
parent
054e640fba
commit
08db04ccb6
@@ -1326,8 +1326,8 @@ class Ec2Inventory(object):
|
||||
instance_vars["ec2_security_group_names"] = ','.join([str(i) for i in group_names])
|
||||
elif key == 'ec2_block_device_mapping':
|
||||
instance_vars["ec2_block_devices"] = {}
|
||||
for k, v in value.iteritems():
|
||||
instance_vars["ec2_block_devices"][ ( k.split( '/' ) )[ -1 ] ] = v.volume_id
|
||||
for k, v in value.items():
|
||||
instance_vars["ec2_block_devices"][ os.path.basename(k) ] = v.volume_id
|
||||
else:
|
||||
pass
|
||||
# TODO Product codes if someone finds them useful
|
||||
|
||||
Reference in New Issue
Block a user