Revision e5c2accd qa/qa_instance.py

b/qa/qa_instance.py
133 133
           _ReadSsconfInstanceList())
134 134

  
135 135

  
136
def TestInstanceRename(instance, rename_target):
136
def TestInstanceRename(rename_source, rename_target):
137 137
  """gnt-instance rename"""
138
  rename_source = instance['name']
139

  
140
  for name1, name2 in [(rename_source, rename_target),
141
                       (rename_target, rename_source)]:
142
    _CheckSsconfInstanceList(name1)
143
    AssertCommand(["gnt-instance", "rename", name1, name2])
144
    _CheckSsconfInstanceList(name2)
138
  _CheckSsconfInstanceList(rename_source)
139
  AssertCommand(["gnt-instance", "rename", rename_source, rename_target])
140
  _CheckSsconfInstanceList(rename_target)
145 141

  
146 142

  
147 143
def TestInstanceFailover(instance):

Also available in: Unified diff