|
40 |
from xml.dom.minidom import parseString |
40 |
from xml.dom.minidom import parseString |
41 |
from xml.parsers.expat import ExpatError |
41 |
from xml.parsers.expat import ExpatError |
42 |
import math |
42 |
import math |
43 |
from helpers import TranslatableException, ms, tuple2version, N_ as _, uri_encode |
43 |
from helpers import TranslatableException, ms, tuple2version, N_ as _, uri_encode, FQDN |
44 |
from uvmm_ldap import ldap_annotation, LdapError, LdapConnectionError, ldap_modify |
44 |
from uvmm_ldap import ldap_annotation, LdapError, LdapConnectionError, ldap_modify |
45 |
import univention.admin.uexceptions |
45 |
import univention.admin.uexceptions |
46 |
import threading |
46 |
import threading |
Lines 748-758
class Node(PersistentCached):
|
Link Here
|
---|
|
748 |
continue |
748 |
continue |
749 |
if gfx.type != Graphic.TYPE_VNC: |
749 |
if gfx.type != Graphic.TYPE_VNC: |
750 |
continue |
750 |
continue |
751 |
if gfx.listen != '0.0.0.0': |
|
|
752 |
continue |
753 |
if gfx.port <= 0: |
751 |
if gfx.port <= 0: |
754 |
continue |
752 |
continue |
755 |
print >> tmp_file, '%s: %s:%d' % (uuid, self.pd.name, gfx.port) |
753 |
if gfx.listen == '0.0.0.0': |
|
|
754 |
vnc_addr = self.pd.name |
755 |
elif gfx.listen is None and self.pd.name == FQDN: |
756 |
vnc_addr = '127.0.0.1' |
757 |
else: |
758 |
continue |
759 |
print >> tmp_file, '%s: %s:%d' % (uuid, vnc_addr, gfx.port) |
756 |
os.rename(tmp_file.name, path) |
760 |
os.rename(tmp_file.name, path) |
757 |
|
761 |
|
758 |
def wait_update(self, domain, state_key, timeout=10): |
762 |
def wait_update(self, domain, state_key, timeout=10): |