summaryrefslogtreecommitdiff
path: root/ironic/api/controllers/version.py
diff options
context:
space:
mode:
authorSteve Baker <sbaker@redhat.com>2020-01-22 16:46:47 +1300
committerSteve Baker <sbaker@redhat.com>2020-01-22 16:46:47 +1300
commitcc7a9c29c21627b8d605113988fc3227bf29b253 (patch)
treea0cc56dc504f54523e8c97823cf2d7afba59ef0d /ironic/api/controllers/version.py
parent443e0b10934f435b5504fcf7b32daeaf0f8ee23b (diff)
downloadironic-cc7a9c29c21627b8d605113988fc3227bf29b253.tar.gz
Use str type instead of wsme.types.text
wsme.type.text maps to six.text_type, which for py3 is str. Ironic is py3 only, and wsme is being removed, so this change replaces all wsme.types.text uses with str. Change-Id: Ie39f049840980d0595be3620f35f14eb4b0198af Story: 1651346
Diffstat (limited to 'ironic/api/controllers/version.py')
-rw-r--r--ironic/api/controllers/version.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/ironic/api/controllers/version.py b/ironic/api/controllers/version.py
index 46472acd8..f83243da5 100644
--- a/ironic/api/controllers/version.py
+++ b/ironic/api/controllers/version.py
@@ -10,8 +10,6 @@
# License for the specific language governing permissions and limitations
# under the License.
-from wsme import types as wtypes
-
from ironic import api
from ironic.api.controllers import base
from ironic.api.controllers import link
@@ -26,13 +24,13 @@ class Version(base.APIBase):
maximum minor versions that are supported within the major version.
"""
- id = wtypes.text
+ id = str
"""The ID of the (major) version, also acts as the release number"""
links = [link.Link]
"""A Link that point to a specific version of the API"""
- status = wtypes.text
+ status = str
"""Status of the version.
One of:
@@ -41,10 +39,10 @@ class Version(base.APIBase):
* DEPRECATED - supported, but deprecated, version of API.
"""
- version = wtypes.text
+ version = str
"""The current, maximum supported (major.minor) version of API."""
- min_version = wtypes.text
+ min_version = str
"""Minimum supported (major.minor) version of API."""
def __init__(self, id, min_version, version, status='CURRENT'):