Debian Codegraph @

test/integration/targets/lookup_config/lookup_plugins/bogus.py

raw
1 # (c) 2021 Ansible Project
2 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
3
4 from __future__ import annotations
5
6
7 DOCUMENTATION = """
8 name: bogus
9 author: Ansible Core Team
10 version_added: hysterical
11 short_description: returns what you gave it
12 description:
13 - this is mostly a noop
14 options:
15 _terms:
16 description: stuff to pass through
17 test_list:
18 description: does nothing, just for testing values
19 type: string
20 required: True
21 """
22
23 EXAMPLES = """
24 """
25
26 RETURN = """
27 _list:
28 description: basically the same as you fed in
29 type: list
30 elements: raw
31 """
32
33 from ansible.plugins.lookup import LookupBase
34
35
36 class LookupModule(LookupBase):
37
38 def run(self, terms, variables=None, **kwargs):
39
40 self.set_options(var_options=variables, direct=kwargs)
41 self.get_option('test_list')
42
43 return terms