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
25cc79e2
Commit
25cc79e2
authored
Sep 26, 2014
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modules is a package.
parent
9249d1db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
lib/ansible/modules/__init__.py
+0
-0
lib/ansible/utils/plugins.py
+8
-1
No files found.
lib/ansible/modules/__init__.py
0 → 100644
View file @
25cc79e2
lib/ansible/utils/plugins.py
View file @
25cc79e2
...
...
@@ -101,7 +101,14 @@ class PluginLoader(object):
for
basedir
in
_basedirs
:
fullpath
=
os
.
path
.
realpath
(
os
.
path
.
join
(
basedir
,
self
.
subdir
))
if
os
.
path
.
isdir
(
fullpath
):
files
=
glob
.
glob
(
"
%
s/*"
%
fullpath
)
# allow directories to be two levels deep
files2
=
glob
.
glob
(
"
%
s/*/*"
%
fullpath
)
files
=
files
.
extend
(
files2
)
for
file
in
files
:
if
os
.
path
.
isdir
(
file
)
and
file
not
in
ret
:
ret
.
append
(
file
)
...
...
@@ -232,7 +239,7 @@ shell_loader = PluginLoader(
module_finder
=
PluginLoader
(
''
,
''
,
'
ansible.modules
'
,
C
.
DEFAULT_MODULE_PATH
,
'library'
)
...
...
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