# otherwise, just make sure the attribute is of the type it should be
ifattribute.isa=='string':
@ -281,7 +281,7 @@ class Base:
except(TypeError,ValueError)ase:
raiseAnsibleParserError("the field '%s' has an invalid value (%s), and could not be converted to an %s. Error was: %s"%(name,value,attribute.isa,e),obj=self.get_ds())
exceptUndefinedErrorase:
if fail_on_undefined:
iftemplar._fail_on_undefined_errors:
raiseAnsibleParserError("the field '%s' has an invalid value, which appears to include a variable that is undefined. The error was: %s"%(name,e),obj=self.get_ds())