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
c02e8d8c
Commit
c02e8d8c
authored
Sep 28, 2014
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't search powershell modules unless using the winrm connection.
parent
3908d50b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
lib/ansible/modules/core
+1
-1
lib/ansible/runner/__init__.py
+1
-1
lib/ansible/utils/plugins.py
+5
-2
No files found.
core
@
9b35a391
Subproject commit
617a52b20d512a4eb5e88fdc76658b220ff80266
Subproject commit
9b35a391213fe87834af5ebc907109de2bc0005f
lib/ansible/runner/__init__.py
View file @
c02e8d8c
...
...
@@ -1213,7 +1213,7 @@ class Runner(object):
# Search module path(s) for named module.
module_suffixes
=
getattr
(
conn
,
'default_suffixes'
,
None
)
module_path
=
utils
.
plugins
.
module_finder
.
find_plugin
(
module_name
,
module_suffixes
)
module_path
=
utils
.
plugins
.
module_finder
.
find_plugin
(
module_name
,
module_suffixes
,
transport
=
self
.
transport
)
if
module_path
is
None
:
module_path2
=
utils
.
plugins
.
module_finder
.
find_plugin
(
'ping'
,
module_suffixes
)
if
module_path2
is
not
None
:
...
...
lib/ansible/utils/plugins.py
View file @
c02e8d8c
...
...
@@ -159,14 +159,17 @@ class PluginLoader(object):
if
directory
not
in
self
.
_extra_dirs
:
self
.
_extra_dirs
.
append
(
directory
)
def
find_plugin
(
self
,
name
,
suffixes
=
None
):
def
find_plugin
(
self
,
name
,
suffixes
=
None
,
transport
=
''
):
''' Find a plugin named name '''
if
not
suffixes
:
if
self
.
class_name
:
suffixes
=
[
'.py'
]
else
:
suffixes
=
[
''
,
'.ps1'
,
'.py'
]
if
transport
==
'winrm'
:
suffixes
=
[
'.ps1'
,
''
]
else
:
suffixes
=
[
'.py'
,
''
]
for
suffix
in
suffixes
:
full_name
=
'
%
s
%
s'
%
(
name
,
suffix
)
...
...
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