Set default for email parameter to None

This commit is contained in:
Olaf Kilian 2015-10-23 06:33:10 +02:00 committed by Matt Clay
parent dab1588253
commit 32862e737f

View file

@ -46,9 +46,9 @@ options:
required: true required: true
email: email:
description: description:
- The email address for the registry account - The email address for the registry account. Note that private registries usually don't need this, but if you want to log into your Docker Hub account (default behaviour) you need to specify this in order to be able to log in.
required: false required: false
default: anonymous@localhost.local default: None
reauth: reauth:
description: description:
- Whether refresh existing authentication on the Docker server (boolean) - Whether refresh existing authentication on the Docker server (boolean)
@ -218,7 +218,7 @@ def main():
registry = dict(required=False, default='https://index.docker.io/v1/'), registry = dict(required=False, default='https://index.docker.io/v1/'),
username = dict(required=True), username = dict(required=True),
password = dict(required=True), password = dict(required=True),
email = dict(required=False, default='anonymous@localhost.local'), email = dict(required=False, default=None),
reauth = dict(required=False, default=False, type='bool'), reauth = dict(required=False, default=False, type='bool'),
dockercfg_path = dict(required=False, default='~/.dockercfg'), dockercfg_path = dict(required=False, default='~/.dockercfg'),
docker_url = dict(default='unix://var/run/docker.sock'), docker_url = dict(default='unix://var/run/docker.sock'),