summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2012-03-21 21:57:30 +0000
committerTed Ross <tross@apache.org>2012-03-21 21:57:30 +0000
commite290b3c879d74326d0152bf93b7e9eeb02615e3d (patch)
treec065afbe919d4fe8899df97183afa80233b806d6
parenta898c7d888f37500319e3d2ee1596e66f27d8e25 (diff)
downloadqpid-python-e290b3c879d74326d0152bf93b7e9eeb02615e3d.tar.gz
NO-JIRA - Fixed a reference bug in qpid-config and added a test that exposes the error.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1303596 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-xqpid/cpp/src/tests/cli_tests.py3
-rwxr-xr-xqpid/tools/src/py/qpid-config2
2 files changed, 4 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/cli_tests.py b/qpid/cpp/src/tests/cli_tests.py
index b9a7dda15c..7ac5b1deed 100755
--- a/qpid/cpp/src/tests/cli_tests.py
+++ b/qpid/cpp/src/tests/cli_tests.py
@@ -330,6 +330,9 @@ class CliTests(TestBase010):
ret = os.system(self.qpid_config_command(" add queue %s --alternate-exchange=%s" % (qName, altName)))
self.assertEqual(ret, 0)
+ ret = os.system(self.qpid_config_command(" queues"))
+ self.assertEqual(ret, 0)
+
queues = self.broker_access.getAllQueues()
found = False
for queue in queues:
diff --git a/qpid/tools/src/py/qpid-config b/qpid/tools/src/py/qpid-config
index 896ae89faf..1308df765d 100755
--- a/qpid/tools/src/py/qpid-config
+++ b/qpid/tools/src/py/qpid-config
@@ -481,7 +481,7 @@ class BrokerManager:
if LVQ_KEY in args: print "--lvq-key=%s" % args[LVQ_KEY],
if QUEUE_EVENT_GENERATION in args: print "--generate-queue-events=%s" % args[QUEUE_EVENT_GENERATION],
if q.altExchange:
- print "--alternate-exchange=%s" % q._altExchange_.name,
+ print "--alternate-exchange=%s" % q.altExchange,
if FLOW_STOP_SIZE in args: print "--flow-stop-size=%s" % args[FLOW_STOP_SIZE],
if FLOW_RESUME_SIZE in args: print "--flow-resume-size=%s" % args[FLOW_RESUME_SIZE],
if FLOW_STOP_COUNT in args: print "--flow-stop-count=%s" % args[FLOW_STOP_COUNT],