1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #4770 from dragon3/devel

ec2_vol: return volume_id/device even when volume mapping already exists
This commit is contained in:
Michael DeHaan 2013-11-01 09:32:54 -07:00
commit e725eea4be

View file

@ -190,7 +190,8 @@ def main():
if device_name:
if device_name in inst.block_device_mapping:
module.exit_json(msg="Volume mapping for %s already exists on instance %s" % (device_name, instance),
volume_id=inst.block_device_mapping[device_name].volume_id,
device=device_name,
changed=False)
# If custom iops is defined we use volume_type "io1" rather than the default of "standard"