Merge "hpe 3par driver initialization failure"

This commit is contained in:
Zuul 2018-10-26 17:40:58 +00:00 committed by Gerrit Code Review
commit 35dced4ae9

View File

@ -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()