issue #477: older Ansibles had no vars plugin base class.
This commit is contained in:
parent
33caea06ed
commit
66b64cae2c
|
@ -1,16 +1,12 @@
|
|||
# https://github.com/dw/mitogen/issues/297
|
||||
|
||||
from __future__ import (absolute_import, division, print_function)
|
||||
__metaclass__ = type
|
||||
|
||||
from ansible.plugins.vars import BaseVarsPlugin
|
||||
import os
|
||||
|
||||
class VarsModule(BaseVarsPlugin):
|
||||
class VarsModule(object):
|
||||
def __init__(self, *args):
|
||||
super(VarsModule, self).__init__(*args)
|
||||
os.environ['EVIL_VARS_PLUGIN'] = 'YIPEEE'
|
||||
|
||||
def get_vars(self, loader, path, entities, cache=True):
|
||||
super(VarsModule, self).get_vars(loader, path, entities)
|
||||
return {}
|
||||
|
|
Loading…
Reference in New Issue