~timkuhlman/charms/trusty/rsyslog-forwarder-ha/no-duplicate-kern

« back to all changes in this revision

Viewing changes to hooks/utils.py

  • Committer: Jorge Niedbalski
  • Date: 2014-05-02 19:55:18 UTC
  • Revision ID: jorge.niedbalski@canonical.com-20140502195518-4274miknnbx2lw8h
Initial import of the charm.
        - make test ( runs functional + unit )
        - make lint ( lints the code )
        - make unit ( unit tests )
        - make functional ( unit tests )

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
try:
11
11
    from jinja2 import Environment, FileSystemLoader
12
12
except ImportError:
13
 
    fetch.apt_install("python-jinja2")
14
 
    from jinja2 import Environment, FileSystemLoader
 
13
    try:
 
14
        fetch.apt_install("python-jinja2")
 
15
        from jinja2 import Environment, FileSystemLoader
 
16
    except:
 
17
        pass
15
18
 
16
19
import os
17
20
import sys