76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
continue
idx = line.find("address:")
if idx != -1:
url = line[idx+9:]
if url.startswith('*:'):
url = socket.getfqdn()+url[1:]
if url is None:
if output.endswith('(qemu)'):
return spiceurl(sock)
print >>sys.stderr, "ERROR parsing 'info spice' output:«",output,"»"
return None
return "spice://" + url.rstrip('\r')
|
|
|
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
continue
idx = line.find("address:")
if idx != -1:
url = line[idx+9:]
if url.startswith('*:'):
url = socket.getfqdn()+url[1:]
if url is None:
if output.rstrip().endswith('(qemu)'):
return spiceurl(sock)
print >>sys.stderr, "ERROR parsing 'info spice' output:«",output,"»"
return None
return "spice://" + url.rstrip('\r')
|