Sha256: 120ed886149f757a93667f98ae85dd6cc2704adbaa99279b4022a740f3a5205d

Contents?: true

Size: 723 Bytes

Versions: 68

Compression:

Stored size: 723 Bytes

Contents

from __future__ import (absolute_import, division, print_function)
__metaclass__ = type

from ansible.errors import AnsibleError, AnsibleParserError
from ansible.plugins.lookup import LookupBase

try:
    from __main__ import display
except ImportError:
    from ansible.utils.display import Display
    display = Display()


class LookupModule(LookupBase):

    def run(self, terms, variables=None, **kwargs):

        ret = []

        for term in terms:
            display.debug("resolve lookup term: %s" % term)

            # Find the file in the expected search path
            lookupfile = self.find_file_in_search_path(variables, 'files', term)
            
            ret.append(lookupfile)

        return ret

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
qb-0.4.5 plugins/lookup/resolve_lookups.py
qb-0.4.4 plugins/lookup/resolve_lookups.py
qb-0.4.3 plugins/lookup/resolve_lookups.py
qb-0.4.2 plugins/lookup/resolve_lookups.py
qb-0.4.1 plugins/lookup/resolve_lookups.py
qb-0.4.0 plugins/lookup/resolve_lookups.py
qb-0.3.25 plugins/lookup_plugins/resolve.py
qb-0.3.24 plugins/lookup_plugins/resolve.py
qb-0.3.23 plugins/lookup_plugins/resolve.py
qb-0.3.22 plugins/lookup_plugins/resolve.py
qb-0.3.21 plugins/lookup_plugins/resolve.py
qb-0.3.20 plugins/lookup_plugins/resolve.py
qb-0.3.19 plugins/lookup_plugins/resolve.py
qb-0.3.18 plugins/lookup_plugins/resolve.py
qb-0.3.17 plugins/lookup_plugins/resolve.py
qb-0.3.16 plugins/lookup_plugins/resolve.py
qb-0.3.15 plugins/lookup_plugins/resolve.py
qb-0.3.14 plugins/lookup_plugins/resolve.py
qb-0.3.13 plugins/lookup_plugins/resolve.py
qb-0.3.12 plugins/lookup_plugins/resolve.py