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
40b78f96
Commit
40b78f96
authored
Apr 17, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2700 from chamill/devel
Fix errors in lookup plugins.
parents
cce2cad8
663d37b5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
5 deletions
+9
-5
lib/ansible/runner/lookup_plugins/dnstxt.py
+2
-2
lib/ansible/runner/lookup_plugins/env.py
+3
-0
lib/ansible/runner/lookup_plugins/fileglob.py
+1
-1
lib/ansible/runner/lookup_plugins/sequence.py
+2
-2
lib/ansible/runner/lookup_plugins/template.py
+1
-0
No files found.
lib/ansible/runner/lookup_plugins/dnstxt.py
View file @
40b78f96
...
...
@@ -44,8 +44,8 @@ class LookupModule(object):
terms
=
utils
.
listify_lookup_plugin_terms
(
terms
,
self
.
basedir
,
inject
)
if
isinstance
(
basestring
,
terms
):
terms
=
[
terms
]
ret
=
[]
for
term
in
terms
:
...
...
lib/ansible/runner/lookup_plugins/env.py
View file @
40b78f96
...
...
@@ -27,6 +27,9 @@ class LookupModule(object):
terms
=
utils
.
listify_lookup_plugin_terms
(
terms
,
self
.
basedir
,
inject
)
if
isinstance
(
basestring
,
terms
):
terms
=
[
terms
]
ret
=
[]
for
term
in
terms
:
var
=
term
.
split
()[
0
]
...
...
lib/ansible/runner/lookup_plugins/fileglob.py
View file @
40b78f96
...
...
@@ -26,7 +26,7 @@ class LookupModule(object):
def
run
(
self
,
terms
,
inject
=
None
,
**
kwargs
):
utils
.
listify_lookup_plugin_terms
(
terms
,
self
.
basedir
,
inject
)
terms
=
utils
.
listify_lookup_plugin_terms
(
terms
,
self
.
basedir
,
inject
)
ret
=
[]
...
...
lib/ansible/runner/lookup_plugins/sequence.py
View file @
40b78f96
...
...
@@ -16,7 +16,7 @@
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
from
ansible.errors
import
AnsibleError
from
ansible.utils
import
parse_kv
import
ansible.utils
as
utils
from
re
import
compile
as
re_compile
,
IGNORECASE
# shortcut format
...
...
@@ -181,7 +181,7 @@ class LookupModule(object):
try
:
if
not
self
.
parse_simple_args
(
term
):
self
.
parse_kv_args
(
parse_kv
(
term
))
self
.
parse_kv_args
(
utils
.
parse_kv
(
term
))
except
Exception
:
raise
AnsibleError
(
"unknown error parsing with_sequence arguments:
%
r"
...
...
lib/ansible/runner/lookup_plugins/template.py
View file @
40b78f96
...
...
@@ -16,6 +16,7 @@
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
from
ansible.utils
import
template
import
ansible.utils
as
utils
class
LookupModule
(
object
):
...
...
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