summaryrefslogtreecommitdiff
path: root/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
commit13183651f7b52bdff69866d2f05b2d3326dcd5ed (patch)
treedec707d5ce29fb388b77d70f49883bc7c71119a8 /python
parent9b3ec0dcc943c0f1837cfc50e8c3613552af3aca (diff)
downloadqpid-python-13183651f7b52bdff69866d2f05b2d3326dcd5ed.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/qpid@1613129 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python')
-rw-r--r--python/qpid/messaging/driver.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/qpid/messaging/driver.py b/python/qpid/messaging/driver.py
index 6110befc69..3487e4b4ba 100644
--- a/python/qpid/messaging/driver.py
+++ b/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: