summaryrefslogtreecommitdiffstats
path: root/nova
diff options
context:
space:
mode:
authorAnthony Young <sleepsonthefloor@gmail.com>2010-12-23 01:22:54 -0800
committerAnthony Young <sleepsonthefloor@gmail.com>2010-12-23 01:22:54 -0800
commit43dfae5926bafa1575aee9624651cfcb8f170bb3 (patch)
tree11f56c6860981d188add0e0e46c88a8e7453102b /nova
parent777f739e954389dcabc92ef4da7063efd2bae6a3 (diff)
downloadnova-43dfae5926bafa1575aee9624651cfcb8f170bb3.tar.gz
nova-43dfae5926bafa1575aee9624651cfcb8f170bb3.tar.xz
nova-43dfae5926bafa1575aee9624651cfcb8f170bb3.zip
some pep8 fixes
Diffstat (limited to 'nova')
-rw-r--r--nova/flags.py2
-rw-r--r--nova/virt/libvirt_conn.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/nova/flags.py b/nova/flags.py
index 2d5aec840..406f159e6 100644
--- a/nova/flags.py
+++ b/nova/flags.py
@@ -220,7 +220,7 @@ DEFINE_string('scheduler_topic', 'scheduler',
'the topic scheduler nodes listen on')
DEFINE_string('volume_topic', 'volume', 'the topic volume nodes listen on')
DEFINE_string('network_topic', 'network', 'the topic network nodes listen on')
-DEFINE_string('ajax_console_proxy_topic', 'ajax_proxy',
+DEFINE_string('ajax_console_proxy_topic', 'ajax_proxy',
'the topic ajax proxy nodes listen on')
DEFINE_string('ajax_console_proxy_url',
'http://tonbuntu:8000',
diff --git a/nova/virt/libvirt_conn.py b/nova/virt/libvirt_conn.py
index 3c0efd18f..40a430d86 100644
--- a/nova/virt/libvirt_conn.py
+++ b/nova/virt/libvirt_conn.py
@@ -402,7 +402,7 @@ class LibvirtConnection(object):
def get_ajax_console(self, instance):
def get_open_port():
start_port, end_port = FLAGS.ajaxterm_portrange.split("-")
- for i in xrange(0,100): # don't loop forever
+ for i in xrange(0,100): # don't loop forever
port = random.randint(int(start_port), int(end_port))
# netcat will exit with 0 only if the port is in use,
# so a nonzero return value implies it is unused