Author: eallen
Date: 2011-02-21 22:07:12 +0000 (Mon, 21 Feb 2011)
New Revision: 4544
Modified:
trunk/cumin/bin/cumin-admin
trunk/cumin/bin/cumin-bench
trunk/cumin/bin/cumin-data
trunk/cumin/bin/cumin-smoke-test
trunk/cumin/bin/cumin-web
Log:
Only use the 1st broker listed in the config file
Modified: trunk/cumin/bin/cumin-admin
===================================================================
--- trunk/cumin/bin/cumin-admin 2011-02-21 20:40:45 UTC (rev 4543)
+++ trunk/cumin/bin/cumin-admin 2011-02-21 22:07:12 UTC (rev 4544)
@@ -47,7 +47,8 @@
print "Command '%s' is unknown" % name
sys.exit(1)
- broker_uris = [x.strip() for x in opts.brokers.split(",")]
+ # take the 1st broker listed
+ broker_uris = [x.strip() for x in opts.brokers.split(",")[0:1]]
app = Cumin(config.get_home(), broker_uris, opts.database)
Modified: trunk/cumin/bin/cumin-bench
===================================================================
--- trunk/cumin/bin/cumin-bench 2011-02-21 20:40:45 UTC (rev 4543)
+++ trunk/cumin/bin/cumin-bench 2011-02-21 22:07:12 UTC (rev 4544)
@@ -14,7 +14,8 @@
setup_operational_logging(opts)
- broker_uris = [x.strip() for x in opts.brokers.split(",")]
+ # take the 1st broker listed
+ broker_uris = [x.strip() for x in opts.brokers.split(",")[0:1]]
cumin = Cumin(config.get_home(), broker_uris, opts.database)
Modified: trunk/cumin/bin/cumin-data
===================================================================
--- trunk/cumin/bin/cumin-data 2011-02-21 20:40:45 UTC (rev 4543)
+++ trunk/cumin/bin/cumin-data 2011-02-21 22:07:12 UTC (rev 4544)
@@ -19,7 +19,8 @@
model_dir = os.path.join(config.home, "model")
- broker_uris = [x.strip() for x in opts.brokers.split(",")]
+ # take the 1st broker listed
+ broker_uris = [x.strip() for x in opts.brokers.split(",")[0:1]]
mint = Mint(model_dir, broker_uris, opts.database)
Modified: trunk/cumin/bin/cumin-smoke-test
===================================================================
--- trunk/cumin/bin/cumin-smoke-test 2011-02-21 20:40:45 UTC (rev 4543)
+++ trunk/cumin/bin/cumin-smoke-test 2011-02-21 22:07:12 UTC (rev 4544)
@@ -19,7 +19,8 @@
setup_operational_logging(opts)
- broker_uris = [x.strip() for x in opts.brokers.split(",")]
+ # take the 1st broker listed
+ broker_uris = [x.strip() for x in opts.brokers.split(",")[0:1]]
cumin = Cumin(config.get_home(), broker_uris, opts.database,
opts.host, opts.port)
Modified: trunk/cumin/bin/cumin-web
===================================================================
--- trunk/cumin/bin/cumin-web 2011-02-21 20:40:45 UTC (rev 4543)
+++ trunk/cumin/bin/cumin-web 2011-02-21 22:07:12 UTC (rev 4544)
@@ -17,7 +17,8 @@
setup_operational_logging(opts)
- broker_uris = [x.strip() for x in opts.brokers.split(",")]
+ # take the 1st broker listed
+ broker_uris = [x.strip() for x in opts.brokers.split(",")[0:1]]
cumin = Cumin(config.get_home(), broker_uris, opts.database,
opts.host, opts.port)
Show replies by date