hpe 3par driver initialization failure
do_setup call fails if the stats passed has the missing
array_id, in such cases it should use the client login
to fetch the array_id information.
Closes-bug:
@@ -490,7 +490,7 @@ class HPE3PARCommon(object):
# Get the client ID for provider_location. We only need to retrieve
# the ID directly from the array if the driver stats are not provided.
- if not stats:
+ if not stats or 'array_id' not in stats:
try:
self.client_login()
info = self.client.getStorageSystemInfo()
