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
643690ff
Commit
643690ff
authored
Dec 21, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove depedency of lookup plugin on setting in ansible.cfg
parent
5b3c7966
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
lib/ansible/runner/lookup_plugins/etcd.py
+5
-2
No files found.
lib/ansible/runner/lookup_plugins/etcd.py
View file @
643690ff
...
...
@@ -23,8 +23,11 @@ try:
except
ImportError
:
import
simplejson
as
json
# this can be made configurable, not should not use ansible.cfg
ANSIBLE_ETCD_URL
=
'http://127.0.0.1:4001'
class
etcd
():
def
__init__
(
self
,
url
=
'http://127.0.0.1:4001'
):
def
__init__
(
self
,
url
=
ANSIBLE_ETCD_URL
)
self
.
url
=
url
self
.
baseurl
=
'
%
s/v1/keys'
%
(
self
.
url
)
...
...
@@ -56,7 +59,7 @@ class LookupModule(object):
def
__init__
(
self
,
basedir
=
None
,
**
kwargs
):
self
.
basedir
=
basedir
self
.
etcd
=
etcd
(
constants
.
ANSIBLE_ETCD_URL
)
self
.
etcd
=
etcd
()
def
run
(
self
,
terms
,
inject
=
None
,
**
kwargs
):
...
...
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