cinder-volume exits with an exception while accessing a None
object during retry of create session failure.
Closes-Bug: #
1374585
Change-Id: I1d8dd034e9c6eb7568cf6f243a203df7de1777da
doc = excep.document
detail = doc.childAtPath('/Envelope/Body/Fault/detail')
fault_list = []
- for child in detail.getChildren():
- fault_list.append(child.get('type'))
+ if detail is not None:
+ for child in detail.getChildren():
+ fault_list.append(child.get('type'))
raise error_util.VimFaultException(fault_list, excep)
except AttributeError as excep: