~junaidali/charms/trusty/plumgrid-director/pg-restart

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/contrib/openstack/templating.py

  • Committer: bbaqar at plumgrid
  • Date: 2015-07-29 18:07:31 UTC
  • Revision ID: bbaqar@plumgrid.com-20150729180731-ioynar8x3u5pxytc
Addressed reviews by Charmers

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
try:
30
30
    from jinja2 import FileSystemLoader, ChoiceLoader, Environment, exceptions
31
31
except ImportError:
32
 
    # python-jinja2 may not be installed yet, or we're running unittests.
33
 
    FileSystemLoader = ChoiceLoader = Environment = exceptions = None
 
32
    apt_install('python-jinja2', fatal=True)
 
33
    from jinja2 import FileSystemLoader, ChoiceLoader, Environment, exceptions
34
34
 
35
35
 
36
36
class OSConfigException(Exception):