Revision 9a6eacb9 api/actions.py
b/api/actions.py | ||
---|---|---|
75 | 75 |
dport = console_data['port'] |
76 | 76 |
passwd = random_password() |
77 | 77 |
|
78 |
request_vnc_forwarding(sport, daddr, dport, passwd) |
|
78 |
if not request_vnc_forwarding(sport, daddr, dport, passwd): |
|
79 |
raise ServiceUnavailable("Could not allocate VNC console port") |
|
79 | 80 |
vnc = { 'host': getfqdn(), 'port': sport, 'password': passwd } |
80 | 81 |
|
81 | 82 |
# Format to be reviewed by [verigak], FIXME |
Also available in: Unified diff