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.
This commit is contained in:
Will Thames 2018-01-11 14:11:28 +10:00 committed by Jordan Borean
parent ca4eb07f46
commit 04df2312e7

View file

@ -100,6 +100,7 @@ class AnsibleAWSModule(object):
msg='Python modules "botocore" or "boto3" are missing, please install both') msg='Python modules "botocore" or "boto3" are missing, please install both')
self.check_mode = self._module.check_mode self.check_mode = self._module.check_mode
self._name = self._module._name
@property @property
def params(self): def params(self):