cinder/releasenotes/notes/brocade_looup_fail_get_client-179151d449a34aa4.yaml
Gorka Eguileor 9c13d77068 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
(cherry picked from commit 122036638d)
(cherry picked from commit 41fcbf8a56)
2020-08-20 22:04:48 +02:00

6 lines
168 B
YAML

---
fixes:
- |
Fix `UnboundLocalError` on the Brocade lookup driver on southbound client
creation failure during the device mapping retrieval (Bug #1888550).