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
3fdf15fa
Commit
3fdf15fa
authored
May 11, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
template code fixes for 'make pep8'
parent
6b4f09d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
lib/ansible/utils/template.py
+12
-10
No files found.
lib/ansible/utils/template.py
View file @
3fdf15fa
...
...
@@ -30,24 +30,26 @@ import datetime
import
pwd
class
Globals
(
object
):
FILTERS
=
None
def
__init__
(
self
):
pass
def
_get_filters
():
''' return filter plugin instances '''
''' return filter plugin instances '''
if
Globals
.
FILTERS
is
not
None
:
return
Globals
.
FILTERS
if
Globals
.
FILTERS
is
not
None
:
return
Globals
.
FILTERS
from
ansible
import
utils
plugins
=
[
x
for
x
in
utils
.
plugins
.
filter_loader
.
all
()]
filters
=
{}
for
fp
in
plugins
:
filters
.
update
(
fp
.
filters
())
Globals
.
FILTERS
=
filters
from
ansible
import
utils
plugins
=
[
x
for
x
in
utils
.
plugins
.
filter_loader
.
all
()]
filters
=
{}
for
fp
in
plugins
:
filters
.
update
(
fp
.
filters
())
Globals
.
FILTERS
=
filters
return
Globals
.
FILTERS
return
Globals
.
FILTERS
def
_get_extensions
():
''' return jinja2 extensions to load '''
...
...
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