Merge "VNX: raise exception if no storops" into stable/newton

This commit is contained in:
Jenkins 2016-10-11 19:46:16 +00:00 committed by Gerrit Code Review
commit 50fe676e87

View File

@ -81,6 +81,9 @@ class Client(object):
def __init__(self, ip, username, password, scope,
naviseccli, sec_file):
self.naviseccli = naviseccli
if not storops:
msg = _('storops Python library is not installed.')
raise exception.VolumeBackendAPIException(message=msg)
self.vnx = storops.VNXSystem(ip=ip,
username=username,
password=password,