Revision 906a0346 qa/qa_rapi.py

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

  
4
# Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012 Google Inc.
4
# Copyright (C) 2007, 2008, 2009, 2010, 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
......
551 551
def TestRapiInstanceAdd(node, use_client):
552 552
  """Test adding a new instance via RAPI"""
553 553
  instance = qa_config.AcquireInstance()
554
  qa_config.SetInstanceTemplate(instance, constants.DT_PLAIN)
554 555
  try:
555 556
    disk_sizes = [utils.ParseUnit(size) for size in qa_config.get("disk")]
556 557
    disks = [{"size": size} for size in disk_sizes]
......
751 752
  rapi_pw_file.write(_rapi_password)
752 753
  rapi_pw_file.flush()
753 754

  
755
  qa_config.SetInstanceTemplate(dest_instance,
756
                                qa_config.GetInstanceTemplate(src_instance))
757

  
754 758
  # TODO: Run some instance tests before moving back
755 759

  
756 760
  if snode is None:

Also available in: Unified diff