|
55 |
import fnmatch |
55 |
import fnmatch |
56 |
import re |
56 |
import re |
57 |
import random |
57 |
import random |
|
|
58 |
import shutil |
58 |
from xml.sax.saxutils import escape as xml_escape |
59 |
from xml.sax.saxutils import escape as xml_escape |
59 |
import tempfile |
60 |
import tempfile |
60 |
try: |
61 |
try: |
|
786 |
if gfx.port <= 0: |
787 |
if gfx.port <= 0: |
787 |
continue |
788 |
continue |
788 |
print >> tmp_file, '%s: %s:%d' % (uuid, self.pd.name, gfx.port) |
789 |
print >> tmp_file, '%s: %s:%d' % (uuid, self.pd.name, gfx.port) |
789 |
os.rename(tmp_file.name, path) |
790 |
shutil.move(tmp_file.name, path) |
790 |
|
791 |
|
791 |
def wait_update(self, domain, state_key, timeout=10): |
792 |
def wait_update(self, domain, state_key, timeout=10): |
792 |
"""Wait until domain gets updated.""" |
793 |
"""Wait until domain gets updated.""" |