Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. diff --git a/lib/ansible/playbook/base.py b/lib/ansible/playbook/base.py
  2. index 74f079e..e1909f8 100644
  3. --- a/lib/ansible/playbook/base.py
  4. +++ b/lib/ansible/playbook/base.py
  5. @@ -376,7 +376,11 @@ class FieldAttributeBase(with_metaclass(BaseMeta, object)):
  6. value = getattr(self, name)
  7. else:
  8. # if the attribute contains a variable, template it now
  9. - value = templar.template(getattr(self, name))
  10. + try:
  11. + value = templar.template(getattr(self, name))
  12. + except AttributeError as e:
  13. + print('ERROR: %s created %s' % (getattr(self, name), e))
  14. + raise e
  15.  
  16. # if this evaluated to the omit value, set the value back to
  17. # the default specified in the FieldAttribute and move on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement