diff options
| author | Anthony Young <sleepsonthefloor@gmail.com> | 2010-12-22 18:52:43 -0800 |
|---|---|---|
| committer | Anthony Young <sleepsonthefloor@gmail.com> | 2010-12-22 18:52:43 -0800 |
| commit | 4e9b4c9ce31a7a50d7e38d5e0bd71718d5bb8b95 (patch) | |
| tree | e86d9bf88d98204246b6fe8862cad8f51e8d32e6 /nova/virt | |
| parent | 0093342106cc270859df0511dbefad8ec8fc2320 (diff) | |
minor notes, commit before rewriting proxy with eventlet
Diffstat (limited to 'nova/virt')
| -rw-r--r-- | nova/virt/libvirt_conn.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/virt/libvirt_conn.py b/nova/virt/libvirt_conn.py index 658efa8d1..55754ea48 100644 --- a/nova/virt/libvirt_conn.py +++ b/nova/virt/libvirt_conn.py @@ -389,7 +389,7 @@ class LibvirtConnection(object): def get_ajax_console(self, instance): def get_open_port(): for i in xrange(0,100): # don't loop forever - port = random.randint(10000, 12000) + port = random.randint(10000, 12000) #TODO - make flag # netcat will exit with 0 only if the port is in use, # so a nonzero return value implies it is unused cmd = 'netcat 0.0.0.0 %s -w 1 </dev/null || echo free' % (port) |
