Strip out port from the alternative registry url

If the alternative registry url contains a port, it's
stripped out during Ansible bootstrap. Strip it out
from armada image too.

Tested:
  - apply application successfully with private registry
    that has port in the address

Depends-On: https://review.opendev.org/687655
Change-Id: I12814790f0c61247704dbf4f55a7e6620ec5849e
Closes-Bug: #1847409
Signed-off-by: Angie Wang <angie.wang@windriver.com>
This commit is contained in:
Angie Wang 2019-10-11 11:56:42 -04:00
parent dd2de56f53
commit 0c6f262978
1 changed files with 2 additions and 0 deletions

View File

@ -2589,6 +2589,8 @@ class DockerHelper(object):
if quay_registry_url:
quay_url = quay_registry_url[0].value
# If registry url has a port, strip it out
quay_url = re.sub(r':[0-9]+', '', quay_url)
else:
quay_url = constants.DEFAULT_DOCKER_QUAY_REGISTRY