Merge "Dont crash service if sf cluster isnt available"

This commit is contained in:
Jenkins
2013-08-23 09:34:35 +00:00
committed by Gerrit Code Review

View File

@@ -557,7 +557,10 @@ class SolidFireDriver(SanISCSIDriver):
def ensure_export(self, context, volume):
"""Verify the iscsi export info."""
LOG.debug(_("Executing SolidFire ensure_export..."))
return self._do_export(volume)
try:
return self._do_export(volume)
except exception.SolidFireAPIException:
return None
def create_export(self, context, volume):
"""Setup the iscsi export info."""