]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Minor fixes: indentation in bin/quantum and fix import in config.py
authorBrad Hall <bhall@nicira.com>
Fri, 20 May 2011 23:22:48 +0000 (16:22 -0700)
committerBrad Hall <bhall@nicira.com>
Fri, 20 May 2011 23:22:48 +0000 (16:22 -0700)
bin/quantum
quantum/common/config.py

index 16ef7346d2c75a89289976fabce8d702113a9eca..d19fa91efa29c27e2735d1c68f0529566e2f8e70 100644 (file)
@@ -37,9 +37,9 @@ from quantum.common import wsgi
 from quantum.common import config
 
 def create_options(parser):
-    """                             
+    """
     Sets up the CLI and config-file options that may be
-    parsed and program commands.                                                        
+    parsed and program commands.
     :param parser: The option parser
     """
     config.add_common_options(parser)
@@ -53,10 +53,9 @@ if __name__ == '__main__':
 
     try:
         conf, app = config.load_paste_app('quantum', options, args)
-        
-    server = wsgi.Server()
-    server.start(app, int(conf['bind_port']), conf['bind_host'])
-    server.wait()
+        server = wsgi.Server()
+        server.start(app, int(conf['bind_port']), conf['bind_host'])
+        server.wait()
     except RuntimeError, e:
-    sys.exit("ERROR: %s" % e)
+        sys.exit("ERROR: %s" % e)
 
index dbbcd260fc932c03db1c44847d276f380484c229..21c1b59514b250b608e3ce16b9b2147ed43a3b28 100644 (file)
@@ -31,7 +31,7 @@ import sys
 
 from paste import deploy
 
-import quantum.common.exception as exception
+import quantum.common.exceptions as exception
 
 DEFAULT_LOG_FORMAT = "%(asctime)s %(levelname)8s [%(name)s] %(message)s"
 DEFAULT_LOG_DATE_FORMAT = "%Y-%m-%d %H:%M:%S"