issue #477: older Ansibles had no vars plugin base class.

This commit is contained in:
David Wilson 2019-01-23 12:44:08 +00:00
parent 33caea06ed
commit 66b64cae2c
1 changed files with 1 additions and 5 deletions

View File

@ -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 {}