summaryrefslogtreecommitdiff
path: root/qpid/python
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2014-07-24 13:48:22 +0000
committerGordon Sim <gsim@apache.org>2014-07-24 13:48:22 +0000
commitac1142c3e7a3e07f13c256c0038dc044ad594b0c (patch)
tree22de4ab8e04e7018dea930d00cd44b6425fcdd73 /qpid/python
parent79c88e13948c79d85aa84dd241f4dcdc7a0ced6b (diff)
downloadqpid-python-ac1142c3e7a3e07f13c256c0038dc044ad594b0c.tar.gz
QPID-5921: add missing clause to resolution logic for when only exchange exists but queue create was requested
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1613129 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
-rw-r--r--qpid/python/qpid/messaging/driver.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/qpid/python/qpid/messaging/driver.py b/qpid/python/qpid/messaging/driver.py
index 6110befc69..3487e4b4ba 100644
--- a/qpid/python/qpid/messaging/driver.py
+++ b/qpid/python/qpid/messaging/driver.py
@@ -1028,6 +1028,11 @@ class Engine:
type, subtype = None, None
else:
type, subtype = "queue", None
+ elif not er.not_found:
+ if node_type == "queue" and force:
+ type, subtype = None, None
+ else:
+ type, subtype = "topic", er.type
else:
type, subtype = "topic", er.type
if type is not None: