Skip to content

_get_readable_id doesn't support queues with slashes in their names #69

@russellneufeld

Description

@russellneufeld
  1. Create a queue with name "foo/bar"
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions