summaryrefslogtreecommitdiff
path: root/changelogs
diff options
context:
space:
mode:
authorGonéri Le Bouder <goneri@lebouder.net>2021-02-09 10:44:17 -0500
committerMatt Clay <matt@mystile.com>2021-02-11 19:42:27 -0800
commit0a8d5c098367a58eaff10fd5b3868f099c1e17a7 (patch)
tree71bb725b7dff05f6119bdd545be7c04fd1ac5ab5 /changelogs
parentf327e65d11bb905ed9f15996024f857a95592629 (diff)
downloadansible-0a8d5c098367a58eaff10fd5b3868f099c1e17a7.tar.gz
ansible-test: yamllint, check the assigment
Ensure `yamllint`'s `check_assignment()` correctly ignore the attribute assignment. Those don't have any `.id` attribute and will trigger an `AttributeError` exception. See: https://github.com/ansible/ansible/pull/73322
Diffstat (limited to 'changelogs')
-rw-r--r--changelogs/fragments/ansible_test_yamllint_avoid_attribute_exception.yaml3
1 files changed, 3 insertions, 0 deletions
diff --git a/changelogs/fragments/ansible_test_yamllint_avoid_attribute_exception.yaml b/changelogs/fragments/ansible_test_yamllint_avoid_attribute_exception.yaml
new file mode 100644
index 0000000000..bd571d6cc6
--- /dev/null
+++ b/changelogs/fragments/ansible_test_yamllint_avoid_attribute_exception.yaml
@@ -0,0 +1,3 @@
+---
+bugfixes:
+- yamllint - do not raise an ``AttributeError`` if a value is assigned to a module attribute at the top of the module.