mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
try to debug error in tests (revert me)
Error Message object of type 'NoneType' has no len() Stacktrace Traceback (most recent call last): File "/tmp/kitchen/testing/tests/unit/utils/test_network.py", line 225, in test_parse_host_port host, port = network.parse_host_port(host_port) File "/tmp/kitchen/testing/salt/utils/network.py", line 1957, in parse_host_port raise _e_ TypeError: object of type 'NoneType' has no len()
This commit is contained in:
parent
2f8ca47549
commit
35410dde5c
1 changed files with 4 additions and 3 deletions
|
@ -1968,8 +1968,9 @@ def parse_host_port(host_port):
|
|||
host = host_ip
|
||||
except ValueError:
|
||||
log.debug('"%s" Not an IP address? Assuming it is a hostname.', host)
|
||||
except TypeError as _e_:
|
||||
log.error('"%s" generated a TypeError exception', host)
|
||||
raise _e_
|
||||
# Todo: uncomment and handle
|
||||
# except TypeError as _e_:
|
||||
# log.error('"%s" generated a TypeError exception', host)
|
||||
# raise _e_
|
||||
|
||||
return host, port
|
||||
|
|
Loading…
Add table
Reference in a new issue