Commit e1a6abf9 authored by Helga Velroyen's avatar Helga Velroyen
Browse files

Fix usage of mapping from disk templates to storage types



This fixes the currently broken tests due to a slipped
occurrence of the mapping from disk templates to storage
types due to a merge.
Signed-off-by: default avatarHelga Velroyen <helgav@google.com>
Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
parent d8e55568
......@@ -138,7 +138,7 @@ def GetStorageUnitsOfCluster(cfg, include_spindles=False):
cluster_config = cfg.GetClusterInfo()
storage_units = []
for disk_template in cluster_config.enabled_disk_templates:
if constants.DISK_TEMPLATES_STORAGE_TYPE[disk_template]\
if constants.MAP_DISK_TEMPLATE_STORAGE_TYPE[disk_template]\
in constants.STS_REPORT:
storage_units.append(
_GetDefaultStorageUnitForDiskTemplate(cfg, disk_template))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment