diff options
author | Brant Knudson <bknudson@us.ibm.com> | 2015-07-24 14:45:36 -0500 |
---|---|---|
committer | Brant Knudson <bknudson@us.ibm.com> | 2015-07-26 06:54:23 -0500 |
commit | fb28e1a2b80c21ff6a9728654b4d736add810ae1 (patch) | |
tree | aa2c138516818a2af8b51edb860bf1ca3b33bbd7 /keystoneclient/_discover.py | |
parent | a303cbc0ece4a423e58a2fc704c4062b25ede29f (diff) | |
download | python-keystoneclient-fb28e1a2b80c21ff6a9728654b4d736add810ae1.tar.gz |
Proper deprecation for Dicover.raw_version_data unstable parameter
Dicover.raw_version_data()'s unstable parameter wasn't properly
deprecated since it was only mentioned in the docstring. Prope
deprecation requires use of warnings/debtcollector and
documentation.
Also, fixed a place where the deprecated function could be used.
bp deprecations
Change-Id: I42dd7c1831bcfc3c637572eb112353b8760ed8d0
Diffstat (limited to 'keystoneclient/_discover.py')
-rw-r--r-- | keystoneclient/_discover.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/keystoneclient/_discover.py b/keystoneclient/_discover.py index 07d0ae6..8d6889d 100644 --- a/keystoneclient/_discover.py +++ b/keystoneclient/_discover.py @@ -195,6 +195,9 @@ class Discover(object): :raw_status str: The status as provided by the server :rtype: list(dict) """ + if kwargs.pop('unstable', None): + kwargs.setdefault('allow_experimental', True) + kwargs.setdefault('allow_unknown', True) data = self.raw_version_data(**kwargs) versions = [] |