--- uvmm/node.py.bak 2014-10-09 10:10:40.632510736 +0200 +++ uvmm/node.py 2014-10-09 10:31:04.224509423 +0200 @@ -55,6 +55,7 @@ import fnmatch import re import random +import shutil from xml.sax.saxutils import escape as xml_escape import tempfile try: @@ -786,7 +787,7 @@ if gfx.port <= 0: continue print >> tmp_file, '%s: %s:%d' % (uuid, self.pd.name, gfx.port) - os.rename(tmp_file.name, path) + shutil.move(tmp_file.name, path) def wait_update(self, domain, state_key, timeout=10): """Wait until domain gets updated."""