mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 10:40:22 -07:00
return volume_id/device even when volume mapping already exists
This commit is contained in:
parent
dc4d589ce0
commit
19b5008c0a
1 changed files with 2 additions and 1 deletions
|
@ -212,7 +212,8 @@ def main():
|
||||||
if device_name:
|
if device_name:
|
||||||
if device_name in inst.block_device_mapping:
|
if device_name in inst.block_device_mapping:
|
||||||
module.exit_json(msg="Volume mapping for %s already exists on instance %s" % (device_name, instance),
|
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)
|
changed=False)
|
||||||
|
|
||||||
# If custom iops is defined we use volume_type "io1" rather than the default of "standard"
|
# If custom iops is defined we use volume_type "io1" rather than the default of "standard"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue