Skip to content

Commit

Permalink
Added fix for issue hpe-storage#708
Browse files Browse the repository at this point in the history
  • Loading branch information
bhagyashree-sarawate committed Aug 21, 2019
1 parent 991b17b commit 368fe97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hpedockerplugin/volume_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ def get_volume_snap_details(self, volname, snapname, qualified_name):
self._set_qos_and_flash_cache_info(backend_vol_name, volinfo)

qos_name = volinfo.get('qos_name')
if qos_name is not None:
if qos_name is not None and "ERROR" not in qos_name:
try:
qos_detail = self._hpeplugin_driver.get_qos_detail(
qos_name)
Expand All @@ -1108,6 +1108,8 @@ def get_volume_snap_details(self, volname, snapname, qualified_name):
volume['Status'].update({'qos_detail': msg})
msg += ' %s' % six.text_type(ex)
LOG.error(msg)
else:
volume['Status'].update({'qos_detail': qos_name})

flash_cache = volinfo.get('flash_cache')
if flash_cache is not None:
Expand Down

0 comments on commit 368fe97

Please # to comment.