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
4c378189
Commit
4c378189
authored
Mar 12, 2014
by
James Martin
Committed by
James Cammarata
Mar 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes various typos introduced in
a9017af2
.
Fixes odd encoding problem with wait_for_service.
parent
1728734d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
library/database/riak
+5
-4
No files found.
library/database/riak
View file @
4c378189
...
...
@@ -124,9 +124,8 @@ def main():
wait_for_handoffs
=
dict
(
default
=
False
,
type
=
'int'
),
wait_for_ring
=
dict
(
default
=
False
,
type
=
'int'
),
wait_for_service
=
dict
(
required
=
False
,
default
=
None
,
choices
=
[
'kv'
])
),
validate_certs
=
dict
(
default
=
'yes'
,
type
=
'bool'
),
required
=
False
,
default
=
None
,
choices
=
[
'kv'
]),
validate_certs
=
dict
(
default
=
'yes'
,
type
=
'bool'
))
)
...
...
@@ -137,6 +136,7 @@ def main():
wait_for_handoffs
=
module
.
params
.
get
(
'wait_for_handoffs'
)
wait_for_ring
=
module
.
params
.
get
(
'wait_for_ring'
)
wait_for_service
=
module
.
params
.
get
(
'wait_for_service'
)
validate_certs
=
module
.
params
.
get
(
'validate_certs'
)
#make sure riak commands are on the path
...
...
@@ -231,7 +231,7 @@ def main():
module
.
fail_json
(
msg
=
'Timeout waiting for handoffs.'
)
if
wait_for_service
:
cmd
=
'
%
s wait_for_service riak_
%
s
%
s'
%
(
riak_admin_bin
,
wait_for_service
,
node_name
)
cmd
=
[
riak_admin_bin
,
'wait_for_service'
,
'riak_
%
s'
%
wait_for_service
,
node_name
]
rc
,
out
,
err
=
module
.
run_command
(
cmd
)
result
[
'service'
]
=
out
...
...
@@ -250,5 +250,6 @@ def main():
# import module snippets
from
ansible.module_utils.basic
import
*
from
ansible.module_utils.urls
import
*
main
()
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