Don't append :443 to registry domain in the kubernetes-worker layer registry action. Fixes #45547

This commit is contained in:
Jacek N 2017-05-09 16:37:09 +01:00
parent 97889d4ff9
commit b61fd20cb2

View File

@ -46,7 +46,7 @@ for param in ('tlscert', 'tlskey', 'domain', 'htpasswd', 'htpasswd-plain'):
context[param] = value
# Create the dockercfg template variable
dockercfg = '{"%s:443": {"auth": "%s", "email": "root@localhost"}}' % \
dockercfg = '{"%s": {"auth": "%s", "email": "root@localhost"}}' % \
(context['domain'], context['htpasswd-plain'])
context['dockercfg'] = b64encode(dockercfg.encode()).decode('ASCII')