Merge "Fix incorrect ibmc_address parsing on Python 3.8"
This commit is contained in:
commit
443e0b1093
@ -77,11 +77,10 @@ def parse_driver_info(node):
|
|||||||
|
|
||||||
# Validate the iBMC address
|
# Validate the iBMC address
|
||||||
address = driver_info['ibmc_address']
|
address = driver_info['ibmc_address']
|
||||||
parsed = netutils.urlsplit(address)
|
if '://' not in address:
|
||||||
if not parsed.scheme:
|
|
||||||
address = 'https://%s' % address
|
address = 'https://%s' % address
|
||||||
parsed = netutils.urlsplit(address)
|
|
||||||
|
|
||||||
|
parsed = netutils.urlsplit(address)
|
||||||
if not parsed.netloc:
|
if not parsed.netloc:
|
||||||
raise exception.InvalidParameterValue(
|
raise exception.InvalidParameterValue(
|
||||||
_('Invalid iBMC address %(address)s set in '
|
_('Invalid iBMC address %(address)s set in '
|
||||||
|
5
releasenotes/notes/ibmc-38-169438974508f62e.yaml
Normal file
5
releasenotes/notes/ibmc-38-169438974508f62e.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
Fixes incorrect parsing of ``ibmc_address`` with a port but without
|
||||||
|
a schema in the ``ibmc`` hardware type on Python 3.8.
|
Loading…
Reference in New Issue
Block a user