Revision f9329a6c

b/qa/qa_config.py
35 35

  
36 36
_INSTANCE_CHECK_KEY = "instance-check"
37 37
_ENABLED_HV_KEY = "enabled-hypervisors"
38
# Key to store the cluster-wide run-time value of the exclusive storage flag
39
_EXCLUSIVE_STORAGE_KEY = "_exclusive_storage"
38

  
39
#: Cluster-wide run-time value of the exclusive storage flag
40
_exclusive_storage = None
40 41

  
41 42

  
42 43
cfg = {}
......
247 248
  """Set the expected value of the exclusive_storage flag for the cluster.
248 249

  
249 250
  """
250
  cfg[_EXCLUSIVE_STORAGE_KEY] = bool(value)
251
  global _exclusive_storage # pylint: disable=W0603
252

  
253
  _exclusive_storage = bool(value)
251 254

  
252 255

  
253 256
def GetExclusiveStorage():
254 257
  """Get the expected value of the exclusive_storage flag for the cluster.
255 258

  
256 259
  """
257
  val = cfg.get(_EXCLUSIVE_STORAGE_KEY)
260
  val = _exclusive_storage
258 261
  assert val is not None
259 262
  return val
260 263

  

Also available in: Unified diff