diff options
| author | Ted Ross <tross@apache.org> | 2009-06-23 22:00:51 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2009-06-23 22:00:51 +0000 |
| commit | 426f3f15ade384b6a20e60bd500f2326d85e618e (patch) | |
| tree | 263d6e9bd1d6f1699923e3a5c9b7f7d7e893683c /python | |
| parent | 9a8fecf6ced95ce81d3657e24b46b002222b337e (diff) | |
| download | qpid-python-426f3f15ade384b6a20e60bd500f2326d85e618e.tar.gz | |
Fixed bug in decoding field tables (maps)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@787851 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python')
| -rw-r--r-- | python/qpid/management.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/python/qpid/management.py b/python/qpid/management.py index b97709d367..c006da76f5 100644 --- a/python/qpid/management.py +++ b/python/qpid/management.py @@ -497,7 +497,16 @@ class managementClient: elif typecode == 14: # UUID data = codec.read_uuid () elif typecode == 15: # FTABLE - data = codec.read_map () + data = {} + sc = Codec(codec.spec, codec.read_vbin32()) + if sc.encoded: + count = sc.read_uint32() + while count > 0: + k = sc.read_str8() + code = sc.read_uint8() + v = self.decodeValue(sc, code) + data[k] = v + count -= 1 elif typecode == 16: data = codec.read_int8 () elif typecode == 17: |
