Revision 906a0346 qa/qa_config.py

b/qa/qa_config.py
1 1
#
2 2
#
3 3

  
4
# Copyright (C) 2007, 2011, 2012 Google Inc.
4
# Copyright (C) 2007, 2011, 2012, 2013 Google Inc.
5 5
#
6 6
# This program is free software; you can redistribute it and/or modify
7 7
# it under the terms of the GNU General Public License as published by
......
218 218

  
219 219
  inst = instances[0]
220 220
  inst["_used"] = True
221
  inst["_template"] = None
221 222
  return inst
222 223

  
223 224

  
......
225 226
  inst["_used"] = False
226 227

  
227 228

  
229
def GetInstanceTemplate(inst):
230
  """Return the disk template of an instance.
231

  
232
  """
233
  templ = inst["_template"]
234
  assert templ is not None
235
  return templ
236

  
237

  
238
def SetInstanceTemplate(inst, template):
239
  """Set the disk template for an instance.
240

  
241
  """
242
  inst["_template"] = template
243

  
244

  
228 245
def AcquireNode(exclude=None):
229 246
  """Returns the least used node.
230 247

  

Also available in: Unified diff