Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
19b5008c
Commit
19b5008c
authored
Nov 01, 2013
by
dragon3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
return volume_id/device even when volume mapping already exists
parent
dc4d589c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
library/cloud/ec2_vol
+2
-1
No files found.
library/cloud/ec2_vol
View file @
19b5008c
...
...
@@ -212,7 +212,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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment