Revision 615551b2 lib/utils/storage.py

b/lib/utils/storage.py
32 32
  """Given the storage type, returns a list of disk templates based on that
33 33
     storage type."""
34 34
  return [dt for dt in constants.DISK_TEMPLATES
35
          if constants.DISK_TEMPLATES_STORAGE_TYPE[dt] == storage_type]
35
          if constants.MAP_DISK_TEMPLATE_STORAGE_TYPE[dt] == storage_type]
36 36

  
37 37

  
38 38
def GetLvmDiskTemplates():
......
91 91
     storage
92 92

  
93 93
  """
94
  storage_type = constants.DISK_TEMPLATES_STORAGE_TYPE[disk_template]
94
  storage_type = constants.MAP_DISK_TEMPLATE_STORAGE_TYPE[disk_template]
95 95
  cluster = cfg.GetClusterInfo()
96 96
  if disk_template in GetLvmDiskTemplates():
97 97
    return (storage_type, cfg.GetVGName())

Also available in: Unified diff