Revision cb4e8387

b/lib/cmdlib.py
2558 2558

  
2559 2559
    self.cfg.RenameInstance(inst.name, self.op.new_name)
2560 2560
    # Change the instance lock. This is definitely safe while we hold the BGL
2561
    self.context.glm.remove(locking.LEVEL_INSTANCE, inst.name)
2561
    self.context.glm.remove(locking.LEVEL_INSTANCE, old_name)
2562 2562
    self.context.glm.add(locking.LEVEL_INSTANCE, self.op.new_name)
2563 2563

  
2564 2564
    # re-read the instance from the configuration after rename

Also available in: Unified diff