a filter option(region_name) in swift cli not working as expected

Bug #1957935 reported by Youngsol Koh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-swiftclient
In Progress
Undecided
Youngsol Koh

Bug Description

swift --os-auth-url ${AUTH_URL}
      --auth-version 3
      --os-application-credential-id ${CLIENT_ID}
      --os-application-credential-secret ${CLIENT_SECRET}
      --os-region-name ${REGION}
      --os-auth-type v3applicationcredential auth

If you have multiple regions, the result of the cli is always pointing to last element in end-point list, regardless of the specified region(${REGION}).

swift version: python-swiftclient 3.13.0

Similar issue: https://bugs.launchpad.net/swift/+bug/1518465

Youngsol Koh (youngsol)
Changed in python-swiftclient:
assignee: nobody → Youngsol Koh (youngsol)
Youngsol Koh (youngsol)
Changed in python-swiftclient:
status: New → In Progress
Revision history for this message
Youngsol Koh (youngsol) wrote :

Originated from this issue below.
https://bugs.launchpad.net/python-swiftclient/+bug/1506383

This problem is marked as commited but it is not working properly.

warnings.warn(
                'Providing attr without filter_value to get_urls() is '
                'deprecated as of the 1.7.0 release and may be removed in the '
                '2.0.0 release. Either both should be provided or neither '
                'should be provided.')

The commit forces put literal 'attr' to filter_kwarg though I think attr is attribute to filter.
Thus, literal 'attr' should be 'region_name' and corresponding filter value should be provided in the kwarg dict.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.