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
caa07e7f
Commit
caa07e7f
authored
Jun 01, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pep8 fixes
parent
15560c98
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
library/cloud/quantum_floating_ip
+1
-1
library/database/riak
+3
-3
library/system/setup
+4
-2
No files found.
library/cloud/quantum_floating_ip
View file @
caa07e7f
...
...
@@ -161,7 +161,7 @@ def _create_floating_ip(quantum, module, port_id, net_id):
result
=
quantum
.
create_floatingip
({
'floatingip'
:
kwargs
})
except
Exception
as
e
:
module
.
fail_json
(
msg
=
"There was an error in updating the floating ip address:
%
s"
%
e
.
message
)
module
.
exit_json
(
changed
=
True
,
result
=
result
,
public_ip
=
result
[
'floatingip'
][
'floating_ip_address'
]
)
module
.
exit_json
(
changed
=
True
,
result
=
result
,
public_ip
=
result
[
'floatingip'
][
'floating_ip_address'
])
def
_get_net_id
(
quantum
,
module
):
kwargs
=
{
...
...
library/database/riak
View file @
caa07e7f
...
...
@@ -144,7 +144,7 @@ def main():
# here we attempt to get stats from the http stats interface for 120 seconds.
timeout
=
time
.
time
()
+
120
while
True
:
if
time
.
time
()
>
timeout
:
if
time
.
time
()
>
timeout
:
module
.
fail_json
(
msg
=
'Timeout, could not fetch Riak stats.'
)
try
:
stats_raw
=
urllib2
.
urlopen
(
...
...
@@ -230,7 +230,7 @@ def main():
result
[
'handoffs'
]
=
'No transfers active.'
break
time
.
sleep
(
10
)
if
time
.
time
()
>
timeout
:
if
time
.
time
()
>
timeout
:
module
.
fail_json
(
msg
=
'Timeout waiting for handoffs.'
)
# this could take a while, recommend to run in async mode
...
...
@@ -247,7 +247,7 @@ def main():
break
time
.
sleep
(
10
)
wait
+=
10
if
time
.
time
()
>
timeout
:
if
time
.
time
()
>
timeout
:
module
.
fail_json
(
msg
=
'Timeout waiting for nodes to agree on ring.'
)
result
[
'ring_ready'
]
=
ring_check
()
...
...
library/system/setup
View file @
caa07e7f
...
...
@@ -1608,8 +1608,10 @@ class SunOSNetwork(GenericBsdIfconfigNetwork, Network):
else
:
current_if
=
interfaces
[
device
]
flags
=
self
.
get_options
(
words
[
1
])
if
'IPv4'
in
flags
:
v
=
'ipv4'
if
'IPv6'
in
flags
:
v
=
'ipv6'
if
'IPv4'
in
flags
:
v
=
'ipv4'
if
'IPv6'
in
flags
:
v
=
'ipv6'
current_if
[
v
]
.
append
({
'flags'
:
flags
,
'mtu'
:
words
[
3
]})
current_if
[
'macaddress'
]
=
'unknown'
# will be overwritten later
return
current_if
...
...
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