tls_config_from_options unit tests
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
4727115317
commit
2cc87555cb
5 changed files with 87 additions and 4 deletions
|
|
@ -22,7 +22,7 @@ def tls_config_from_options(options):
|
|||
cert = options.get('--tlscert')
|
||||
key = options.get('--tlskey')
|
||||
verify = options.get('--tlsverify')
|
||||
hostname = urlparse(options.get('--host', '')).hostname
|
||||
hostname = urlparse(options.get('--host') or '').hostname
|
||||
|
||||
advanced_opts = any([ca_cert, cert, key, verify])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue