diff options
| author | Michal Nasiadka <mnasiadka@gmail.com> | 2024-04-25 10:03:47 +0200 |
|---|---|---|
| committer | Michal Nasiadka <mnasiadka@gmail.com> | 2024-05-07 10:06:50 +0000 |
| commit | 2c0f94a868ce712a7b13ac1755f20a5cdc950535 (patch) | |
| tree | 78311794f02e7273ad5f4eae6535cb5ec18d2091 /kolla_ansible | |
| parent | 1e86178d2078aae633fbddc08899f53d419fba6c (diff) | |
| download | kolla-ansible-2c0f94a868ce712a7b13ac1755f20a5cdc950535.tar.gz kolla-ansible-2c0f94a868ce712a7b13ac1755f20a5cdc950535.zip | |
kolla_url: port is a string
Ansible passes port as a string - therefore matching does not work
and we get https://nova_url:443/v2.1
Closes-Bug: #2063434
Change-Id: I76cce7f491c77b6b788d29c8644e87055f5cfff0
Diffstat (limited to 'kolla_ansible')
| -rw-r--r-- | kolla_ansible/kolla_url.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kolla_ansible/kolla_url.py b/kolla_ansible/kolla_url.py index 36e516051..a217491e6 100644 --- a/kolla_ansible/kolla_url.py +++ b/kolla_ansible/kolla_url.py @@ -28,6 +28,7 @@ def kolla_url(fqdn, protocol, port, path='', context='url'): """ fqdn = put_address_in_context(fqdn, context) + port = int(port) if ((protocol == 'http' and port == 80) or (protocol == 'https' and port == 443) or |
