Skip to content

Commit

Permalink
Add a lookup plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jctanner committed Sep 5, 2018
1 parent 6d0e1a2 commit 2942dfa
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions plugins/lookup/newlookup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# Copyright 2018 Red Hat | Ansible
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.

from __future__ import (absolute_import, division, print_function)

__metaclass__ = type


from ansible.plugins.lookup import LookupBase


class LookupModule(LookupBase):

def run(self, terms, variables=None, **kwargs):
#return KubernetesLookup().run(terms, variables=variables, **kwargs)
return ['a', 'b', 'c']

0 comments on commit 2942dfa

Please sign in to comment.