Skip to content

Commit 85a4811

Browse files
committed
Make pep8 happy
1 parent 9f4f2b0 commit 85a4811

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

puppetdb_stencil.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
LOG = logging.getLogger('puppetdb_stencil')
1515

1616
METAPARAMS = ('require', 'before', 'subscribe', 'notify', 'audit', 'loglevel',
17-
'noop', 'schedule', 'stage', 'alias', 'tag')
17+
'noop', 'schedule', 'stage', 'alias', 'tag')
1818

1919
# Allow templates from anywhere on the filesystem
2020
LOADER = jinja2.FileSystemLoader(['.', '/'])
21+
EXTENSIONS = ['jinja2.ext.with_', 'jinja2.ext.loopcontrols']
2122
ENVIRONMENT = jinja2.Environment(trim_blocks=True, lstrip_blocks=True,
22-
loader=LOADER,
23-
extensions=['jinja2.ext.with_', 'jinja2.ext.loopcontrols'])
23+
loader=LOADER, extensions=EXTENSIONS)
2424

2525

2626
def render_resources(database, resource_type, template_names):
@@ -36,7 +36,7 @@ def render_resources(database, resource_type, template_names):
3636
LOG.error('No template found for {0}'.format(resource_type))
3737
else:
3838
return template.render(resource_type=resource_type,
39-
resources=resources, metaparams=METAPARAMS)
39+
resources=resources, metaparams=METAPARAMS)
4040

4141

4242
def main():

0 commit comments

Comments
 (0)