Merge "Fix volume_stats storage_protocol usage in vol mgr"

This commit is contained in:
Zuul 2020-09-24 02:22:10 +00:00 committed by Gerrit Code Review
commit c530f737d1
1 changed files with 1 additions and 1 deletions

View File

@ -2627,7 +2627,7 @@ class VolumeManager(manager.CleanableManager,
# Append cacheable flag for iSCSI/FC/NVMe-oF and only when
# cacheable is not set in driver level
if volume_stats['storage_protocol'] in [
if volume_stats.get('storage_protocol') in [
'iSCSI', 'FC', 'NVMe-oF']:
if volume_stats.get('pools'):
for pool in volume_stats.get('pools'):