Revision 02cff8aa qa/qa_config.py

b/qa/qa_config.py
412 412
    """Is the given disk template supported by the current configuration?
413 413

  
414 414
    """
415
    return (not self.GetExclusiveStorage() or
416
            templ in constants.DTS_EXCL_STORAGE)
415
    enabled = templ in self.GetEnabledDiskTemplates()
416
    return enabled and (not self.GetExclusiveStorage() or
417
                        templ in constants.DTS_EXCL_STORAGE)
417 418

  
418 419
  def GetVclusterSettings(self):
419 420
    """Returns settings for virtual cluster.
......
608 609

  
609 610

  
610 611
def IsTemplateSupported(templ):
611
  """Wrapper for L{_QaConfig.GetExclusiveStorage}.
612
  """Wrapper for L{_QaConfig.IsTemplateSupported}.
612 613

  
613 614
  """
614 615
  return GetConfig().IsTemplateSupported(templ)

Also available in: Unified diff