~canonical-ci-engineering/ubuntu-ci-services-itself/ansible

« back to all changes in this revision

Viewing changes to lib/ansible/runner/lookup_plugins/template.py

  • Committer: Package Import Robot
  • Author(s): Janos Guljas
  • Date: 2013-04-06 23:27:08 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20130406232708-6rn7w7mprfbjpmmk
Tags: 1.1+dfsg-1
* New upstream release.
* Update patches disable-google-analytics.patch and 
  remove-external-image.patch to apply cleanly.
* Add remove-external-footer-image.patch to remove link on external resource.
* Add remove-external-training-references.patch:
  Training advertise contains links to external resources that may not be
  available or may be used for tracking users activity without their
  knowledge by the third-party.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
        self.basedir = basedir
24
24
 
25
25
    def run(self, terms, inject=None, **kwargs):
26
 
        return utils.template_from_file(self.basedir, terms, inject)
27
 
 
 
26
        if isinstance(terms, basestring):
 
27
            terms = [ terms ]
 
28
        ret = []
 
29
        for term in terms:
 
30
            ret.append(utils.template_from_file(self.basedir, term, inject))
 
31
        return ret