}try:returnget_template(arg, is_string=True).render(data)except(TemplateSyntaxError,UndefinedError)ase:raisePyinfraError('Error in template string: {0}'.format(e))elifisinstance(arg, list):return[get_arg_value(state, host, value)forvalueinarg]elifisinstance(arg, tuple):returntuple(get_arg_val...
but acted like the grain was undefined when I ran orchestrations. We tried lots of things to cajole it - restarting master and minion services, saltutil.sync_all on master and minion, removing the key from the master and readding it. ...
_fail_with_undefined_error() except UndefinedError, e: msg = str(e) Example #7Source File: misc.py From catcher with Apache License 2.0 5 votes def render(source: str, variables: dict) -> str: template = Template(source) holder = FiltersHolder() for filter_mod, value in holder....