summaryrefslogtreecommitdiffstats
path: root/openstack/common/rpc/common.py
diff options
context:
space:
mode:
authorDan Smith <danms@us.ibm.com>2012-06-21 12:20:33 -0700
committerDan Smith <danms@us.ibm.com>2012-06-21 15:35:12 -0700
commit510fc472728f5746d4ef8346a874699235f58fa3 (patch)
tree4aeba051e0a7b74dfd1a5059bd03abbc89ca3233 /openstack/common/rpc/common.py
parent9cc979fee72e8b64ddca5cf5f4889541001e7c1b (diff)
downloadoslo-510fc472728f5746d4ef8346a874699235f58fa3.tar.gz
oslo-510fc472728f5746d4ef8346a874699235f58fa3.tar.xz
oslo-510fc472728f5746d4ef8346a874699235f58fa3.zip
Avoid erroneous "Unsupported RPC Version" message if method is missing
The recent RPC versioning support introduced some odd behavior if a non- existent method is called. Instead of reporting that the method does not exist (as the code used to do, in the form of an AttributeError), it now Reports "Unsupported RPC Version". This is highly confusing, as the RPC versions *do* match and is just a result of the logic used to check every advertised RPC proxy for the method. This patch notes if any of the RPC versions matched the requested one, and if so, raises an AttributeError if the method is never found, instead of UnsupportedRpcVersion. Also add unit tests for the cases where a method is missing, both when the API version matches and not. Change-Id: Icb7b13fa890000f1bd03382d5cce747e3311ef6a
Diffstat (limited to 'openstack/common/rpc/common.py')
0 files changed, 0 insertions, 0 deletions