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
d782d91b
Commit
d782d91b
authored
Sep 18, 2013
by
Ralph Bean
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some "make pep8" errors in the digital_ocean module.
parent
022918e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
library/cloud/digital_ocean
+11
-11
No files found.
library/cloud/digital_ocean
View file @
d782d91b
...
...
@@ -186,9 +186,9 @@ class Droplet(JsonfyMixIn):
self
.
power_on
()
if
wait
:
end_time
=
time
.
time
()
+
wait_timeout
end_time
=
time
.
time
()
+
wait_timeout
while
time
.
time
()
<
end_time
:
time
.
sleep
(
min
(
20
,
end_time
-
time
.
time
()))
time
.
sleep
(
min
(
20
,
end_time
-
time
.
time
()))
self
.
update_attr
()
if
self
.
is_powered_on
():
if
not
self
.
ip_address
:
...
...
@@ -283,18 +283,18 @@ def core(module):
droplet
=
Droplet
.
find
(
module
.
params
[
'id'
])
if
not
droplet
:
droplet
=
Droplet
.
add
(
name
=
getkeyordie
(
'name'
),
size_id
=
getkeyordie
(
'size_id'
),
image_id
=
getkeyordie
(
'image_id'
),
region_id
=
getkeyordie
(
'region_id'
),
ssh_key_ids
=
module
.
params
[
'ssh_key_ids'
]
)
name
=
getkeyordie
(
'name'
),
size_id
=
getkeyordie
(
'size_id'
),
image_id
=
getkeyordie
(
'image_id'
),
region_id
=
getkeyordie
(
'region_id'
),
ssh_key_ids
=
module
.
params
[
'ssh_key_ids'
]
)
if
droplet
.
is_powered_on
():
changed
=
False
droplet
.
ensure_powered_on
(
wait
=
getkeyordie
(
'wait'
),
wait_timeout
=
getkeyordie
(
'wait_timeout'
)
)
wait
=
getkeyordie
(
'wait'
),
wait_timeout
=
getkeyordie
(
'wait_timeout'
)
)
module
.
exit_json
(
changed
=
changed
,
droplet
=
droplet
.
to_json
())
elif
state
in
(
'absent'
,
'deleted'
):
...
...
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