1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

module is a property of the global object client (#19744)

Fixes #5466
This commit is contained in:
Tyrone Tudehope 2017-01-05 18:59:30 +02:00 committed by Matt Davis
parent 7ae3539eb5
commit 38d42e8b36

View file

@ -318,8 +318,8 @@ def main():
login_result={}
)
if module.params['state'] == 'present' and module.params['registry_url'] == DEFAULT_DOCKER_REGISTRY and not module.params['email']:
module.fail_json(msg="'email' is required when loging into DockerHub")
if client.module.params['state'] == 'present' and client.module.params['registry_url'] == DEFAULT_DOCKER_REGISTRY and not client.module.params['email']:
client.module.fail_json(msg="'email' is required when logging into DockerHub")
LoginManager(client, results)
if 'actions' in results: