summaryrefslogtreecommitdiffstats
path: root/nova/flags.py
diff options
context:
space:
mode:
authorjaypipes@gmail.com <>2010-08-30 10:36:59 -0400
committerjaypipes@gmail.com <>2010-08-30 10:36:59 -0400
commita1791cdca8dbca8f9bf3555b21324503aba58fda (patch)
tree12f297f1616172ca7e4bce76ecac1dcd737c83af /nova/flags.py
parentbf2549282067a7a824ea97e66a5b2f0ca06416bd (diff)
parent5f14a7955b9ef90afed91bda0343130d83e15a73 (diff)
downloadnova-a1791cdca8dbca8f9bf3555b21324503aba58fda.tar.gz
nova-a1791cdca8dbca8f9bf3555b21324503aba58fda.tar.xz
nova-a1791cdca8dbca8f9bf3555b21324503aba58fda.zip
Resolve conflicts and merge trunk
Diffstat (limited to 'nova/flags.py')
-rw-r--r--nova/flags.py42
1 files changed, 18 insertions, 24 deletions
diff --git a/nova/flags.py b/nova/flags.py
index b3bdd088f..2bca36f7e 100644
--- a/nova/flags.py
+++ b/nova/flags.py
@@ -141,6 +141,7 @@ def _wrapper(func):
return _wrapped
+DEFINE = _wrapper(gflags.DEFINE)
DEFINE_string = _wrapper(gflags.DEFINE_string)
DEFINE_integer = _wrapper(gflags.DEFINE_integer)
DEFINE_bool = _wrapper(gflags.DEFINE_bool)
@@ -168,36 +169,31 @@ def DECLARE(name, module_string, flag_values=FLAGS):
DEFINE_string('connection_type', 'libvirt', 'libvirt, xenapi or fake')
DEFINE_integer('s3_port', 3333, 's3 port')
DEFINE_string('s3_host', '127.0.0.1', 's3 host')
-#DEFINE_string('cloud_topic', 'cloud', 'the topic clouds listen on')
DEFINE_string('compute_topic', 'compute', 'the topic compute 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_bool('verbose', False, 'show debug output')
DEFINE_boolean('fake_rabbit', False, 'use a fake rabbit')
-DEFINE_bool('fake_network', False, 'should we use fake network devices and addresses')
+DEFINE_bool('fake_network', False,
+ 'should we use fake network devices and addresses')
DEFINE_string('rabbit_host', 'localhost', 'rabbit host')
DEFINE_integer('rabbit_port', 5672, 'rabbit port')
DEFINE_string('rabbit_userid', 'guest', 'rabbit userid')
DEFINE_string('rabbit_password', 'guest', 'rabbit password')
DEFINE_string('rabbit_virtual_host', '/', 'rabbit virtual host')
DEFINE_string('control_exchange', 'nova', 'the main exchange to connect to')
-DEFINE_string('ec2_url',
- 'http://127.0.0.1:8773/services/Cloud',
- 'Url to ec2 api server')
-
-DEFINE_string('default_image',
- 'ami-11111',
- 'default image to use, testing only')
-DEFINE_string('default_kernel',
- 'aki-11111',
- 'default kernel to use, testing only')
-DEFINE_string('default_ramdisk',
- 'ari-11111',
- 'default ramdisk to use, testing only')
-DEFINE_string('default_instance_type',
- 'm1.small',
- 'default instance type to use, testing only')
+DEFINE_string('ec2_url', 'http://127.0.0.1:8773/services/Cloud',
+ 'Url to ec2 api server')
+
+DEFINE_string('default_image', 'ami-11111',
+ 'default image to use, testing only')
+DEFINE_string('default_kernel', 'aki-11111',
+ 'default kernel to use, testing only')
+DEFINE_string('default_ramdisk', 'ari-11111',
+ 'default ramdisk to use, testing only')
+DEFINE_string('default_instance_type', 'm1.small',
+ 'default instance type to use, testing only')
DEFINE_string('vpn_image_id', 'ami-CLOUDPIPE', 'AMI for cloudpipe vpn server')
DEFINE_string('vpn_key_suffix',
@@ -207,10 +203,8 @@ DEFINE_string('vpn_key_suffix',
DEFINE_integer('auth_token_ttl', 3600, 'Seconds for auth tokens to linger')
# UNUSED
-DEFINE_string('node_availability_zone',
- 'nova',
- 'availability zone of this node')
-DEFINE_string('node_name',
- socket.gethostname(),
- 'name of this node')
+DEFINE_string('node_availability_zone', 'nova',
+ 'availability zone of this node')
+DEFINE_string('node_name', socket.gethostname(),
+ 'name of this node')