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
26707568
Commit
26707568
authored
Jul 09, 2014
by
James Cammarata
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'issue_7906' of
https://github.com/mpeters/ansible
into mpeters-issue_7906
parents
2c1e58b8
45cf1dbb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
library/cloud/ec2
+9
-1
No files found.
library/cloud/ec2
View file @
26707568
...
...
@@ -921,7 +921,15 @@ def create_instances(module, ec2, override_count=None):
num_running
=
0
wait_timeout
=
time
.
time
()
+
wait_timeout
while
wait_timeout
>
time
.
time
()
and
num_running
<
len
(
instids
):
res_list
=
ec2
.
get_all_instances
(
instids
)
try
:
res_list
=
ec2
.
get_all_instances
(
instids
)
except
boto
.
exception
.
BotoSeverError
,
e
:
if
e
.
error_code
==
'InvalidInstanceID.NotFound'
:
time
.
sleep
(
1
)
continue
else
:
raise
num_running
=
0
for
res
in
res_list
:
num_running
+=
len
([
i
for
i
in
res
.
instances
if
i
.
state
==
'running'
])
...
...
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