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
58814d08
Commit
58814d08
authored
Feb 19, 2014
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6075 from jlaska/issue_6067
Resolves issue#6067 by allowing exact_count=0
parents
ee6a0359
dbd3194e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
library/cloud/ec2
+4
-4
No files found.
library/cloud/ec2
View file @
58814d08
...
...
@@ -1035,7 +1035,7 @@ def main():
instance_profile_name
=
dict
(),
instance_ids
=
dict
(
type
=
'list'
),
state
=
dict
(
default
=
'present'
),
exact_count
=
dict
(
type
=
'int'
),
exact_count
=
dict
(
type
=
'int'
,
default
=
None
),
count_tag
=
dict
(),
volumes
=
dict
(
type
=
'list'
),
)
...
...
@@ -1072,10 +1072,10 @@ def main():
if
not
module
.
params
.
get
(
'image'
):
module
.
fail_json
(
msg
=
'image parameter is required for new instance'
)
if
module
.
params
.
get
(
'exact_count'
):
(
tagged_instances
,
instance_dict_array
,
new_instance_ids
,
changed
)
=
enforce_count
(
module
,
ec2
)
else
:
if
module
.
params
.
get
(
'exact_count'
)
is
None
:
(
instance_dict_array
,
new_instance_ids
,
changed
)
=
create_instances
(
module
,
ec2
)
else
:
(
tagged_instances
,
instance_dict_array
,
new_instance_ids
,
changed
)
=
enforce_count
(
module
,
ec2
)
module
.
exit_json
(
changed
=
changed
,
instance_ids
=
new_instance_ids
,
instances
=
instance_dict_array
,
tagged_instances
=
tagged_instances
)
...
...
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