Force Swift CLI to provide region info or interrupt the request
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-swiftclient |
Fix Committed
|
Undecided
|
Tim Burke |
Bug Description
Not sure about if this should be a bug or new feature
In python-
```
/app/python3/
'Providing attr without filter_value to get_urls() is '
```
https:/
```
- # TODO(jamielennox): at least swiftclient is known to set attr and not
- # filter_value and expects that to mean that filtering is ignored, so
- # we can't check for the presence of attr. This behaviour should be
- # deprecated and an appropriate warning provided.
+ if attr and not filter_value:
+ 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.')
+
```
python-swiftclient should force user to provide region name if python-
Changed in swift: | |
assignee: | nobody → Hugo Kou (tonytkdk) |
affects: | swift → python-swiftclient |
1. To interrupt the request if auth version > 2.0 and force user to provide region name in the request
2. To allow the request but shows up a more clear reason about why
3. To give a default region name