- Create a queue with name "foo/bar"
- Call list_queues() and iterate through queue names, looking for "foo/bar"
Expected to find the queue, but because _get_readable_id cuts the id on the last slash, the queue name comes back in the list as "bar".
Here's a suggestion for _get_readable_id which works for me, although I don't know if it's right in all cases:
def _get_readable_id(id_name):
"""simplified an id to be more friendly for us people"""
pos = id_name.rfind(SERVICE_BUS_HOST_BASE)
if pos != -1:
return id_name[pos+len(SERVICE_BUS_HOST_BASE)+1:]
else:
return id_name