cinder/cinder/tests/unit/zonemanager
Gorka Eguileor 122036638d Brocade: Fix lookup UnboundLocalError
If we get an exception when getting the southbound client in method
get_device_mapping_from_network we will end up seeing the following
error:

  UnboundLocalError: local variable 'conn' referenced before assignment

This patch fixes this issue by making sure that the conn variable exists
even if that call fails.

TrivialFix
Closes-Bug: #1888550
Change-Id: I621a00d34e9c2b14234e11e94857a39fe54a111f
2020-08-07 15:24:44 +02:00
..
__init__.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
test_brcd_fc_san_lookup_service.py Brocade: Fix lookup UnboundLocalError 2020-08-07 15:24:44 +02:00
test_brcd_fc_zone_client_cli.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_brcd_fc_zone_driver.py Brocade: Python 3 support 2020-07-29 10:12:48 +02:00
test_brcd_http_fc_zone_client.py Brocade: Python 3 support 2020-07-29 10:12:48 +02:00
test_brcd_lookup_service.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_brcd_rest_fc_zone_client.py Brocade: Fix AttributeError when raising exception 2020-07-29 10:14:12 +02:00
test_cisco_fc_san_lookup_service.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_cisco_fc_zone_client_cli.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_cisco_fc_zone_driver.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_cisco_lookup_service.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_driverutils.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_fc_zone_manager.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_volume_driver.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00