mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Changes as per @abadger
This commit is contained in:
parent
054e640fba
commit
08db04ccb6
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue