|
781 |
continue |
781 |
continue |
782 |
if gfx.type != Graphic.TYPE_VNC: |
782 |
if gfx.type != Graphic.TYPE_VNC: |
783 |
continue |
783 |
continue |
784 |
if gfx.listen != '0.0.0.0': |
784 |
if gfx.listen == '0.0.0.0': |
|
|
785 |
kvmvncaddr = self.pd.name |
786 |
elif gfx.listen == None: |
787 |
kvmvncaddr = '127.0.0.1' |
788 |
else: |
785 |
continue |
789 |
continue |
786 |
if gfx.port <= 0: |
790 |
if gfx.port <= 0: |
787 |
continue |
791 |
continue |
788 |
print >> tmp_file, '%s: %s:%d' % (uuid, self.pd.name, gfx.port) |
792 |
print >> tmp_file, '%s: %s:%d' % (uuid, kvmvncaddr, gfx.port) |
789 |
os.rename(tmp_file.name, path) |
793 |
os.rename(tmp_file.name, path) |
790 |
|
794 |
|
791 |
def wait_update(self, domain, state_key, timeout=10): |
795 |
def wait_update(self, domain, state_key, timeout=10): |