Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
russellneufeld opened this issue Nov 13, 2012 · 0 comments
Closed

Comments

@russellneufeld
Copy link

  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
@ghost ghost closed this as completed Jul 15, 2013
yunhaoling pushed a commit to yunhaoling/azure-sdk-for-python that referenced this issue Mar 25, 2019
Fixed bug in Azure namespace package
@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 2023
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant