fix wording in error msg (#82848)

pull/82850/head
René Moser 9 months ago committed by GitHub
parent 25c0dc50a2
commit c5557ad872
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -560,7 +560,7 @@ class FieldAttributeBase:
setattr(self, name, value) setattr(self, name, value)
except (TypeError, ValueError) as e: except (TypeError, ValueError) as e:
value = getattr(self, name) value = getattr(self, name)
raise AnsibleParserError("the field '%s' has an invalid value (%s), and could not be converted to an %s. " raise AnsibleParserError("the field '%s' has an invalid value (%s), and could not be converted to %s. "
"The error was: %s" % (name, value, attribute.isa, e), obj=self.get_ds(), orig_exc=e) "The error was: %s" % (name, value, attribute.isa, e), obj=self.get_ds(), orig_exc=e)
except (AnsibleUndefinedVariable, UndefinedError) as e: except (AnsibleUndefinedVariable, UndefinedError) as e:
if templar._fail_on_undefined_errors and name != 'name': if templar._fail_on_undefined_errors and name != 'name':

Loading…
Cancel
Save