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: