From 04df2312e7c2ced34fcadf67cf164f8907274b42 Mon Sep 17 00:00:00 2001 From: Will Thames Date: Thu, 11 Jan 2018 14:11:28 +1000 Subject: [PATCH] Provide AnsibleAWSModule with _name attribute (#34564) _name attribute is used when providing generic error messages (such as connection problems). As AnsibleAWSModule does not inherit things from AnsibleModule by default, need to provide it. --- lib/ansible/module_utils/aws/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/module_utils/aws/core.py b/lib/ansible/module_utils/aws/core.py index 4ce0bc8551b..3d34d3e4052 100644 --- a/lib/ansible/module_utils/aws/core.py +++ b/lib/ansible/module_utils/aws/core.py @@ -100,6 +100,7 @@ class AnsibleAWSModule(object): msg='Python modules "botocore" or "boto3" are missing, please install both') self.check_mode = self._module.check_mode + self._name = self._module._name @property def params(self):