Revision e7b6183b qa/qa_cluster.py

b/qa/qa_cluster.py
94 94
    fh.close()
95 95

  
96 96
  # Initialize cluster
97
  cmd = ["gnt-cluster", "init"]
98

  
99
  cmd.append("--primary-ip-version=%d" %
100
             qa_config.get("primary_ip_version", 4))
97
  cmd = [
98
    "gnt-cluster", "init",
99
    "--primary-ip-version=%d" % qa_config.get("primary_ip_version", 4),
100
    "--enabled-hypervisors=%s" % qa_config.GetEnabledHypervisors(),
101
    ]
101 102

  
102 103
  for spec_type in ("mem-size", "disk-size", "disk-count", "cpu-count",
103 104
                    "nic-count"):
......
115 116
    cmd.append("--bridge=%s" % bridge)
116 117
    cmd.append("--master-netdev=%s" % bridge)
117 118

  
118
  htype = qa_config.get("enabled-hypervisors", None)
119
  if htype:
120
    cmd.append("--enabled-hypervisors=%s" % htype)
121

  
122 119
  cmd.append(qa_config.get("name"))
123 120
  AssertCommand(cmd)
124 121

  

Also available in: Unified diff