Revision d101b7be qa/qa_instance.py

b/qa/qa_instance.py
1047 1047
        CreateInstanceByDiskTemplate(nodes, disk_template, fail=True)
1048 1048
  elif (len(enabled_disk_templates) == 1):
1049 1049
    # If only one disk template is enabled in the QA config, we have to enable
1050
    # some of the disabled disk templates in order to test if the disabling the
1051
    # only enabled disk template prohibits creating instances of that template.
1050
    # some other templates in order to test if the disabling the only enabled
1051
    # disk template prohibits creating instances of that template.
1052
    other_disk_templates = list(
1053
                            set([constants.DT_DISKLESS, constants.DT_BLOCK]) -
1054
                            set(enabled_disk_templates))
1052 1055
    AssertCommand(["gnt-cluster", "modify",
1053 1056
                   "--enabled-disk-template=%s" %
1054
                     ",".join(disabled_disk_templates)],
1057
                     ",".join(other_disk_templates)],
1055 1058
                  fail=False)
1056 1059
    CreateInstanceByDiskTemplate(nodes, enabled_disk_templates[0], fail=True)
1057 1060
  else:

Also available in: Unified diff