summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
authorChangBo Guo(gcb) <eric.guo@easystack.cn>2015-07-04 22:24:54 +0800
committerChangBo Guo(gcb) <eric.guo@easystack.cn>2015-07-10 15:42:12 +0800
commit13b55bd7496fda5b877808f3dff590ba61e3e1a8 (patch)
treedaf8014dfc18d7e9458f9fbe931331a544491f02 /doc/source
parent9989a94f0173b1de94eba4996f1ae968df1120f2 (diff)
downloadoslo-utils-13b55bd7496fda5b877808f3dff590ba61e3e1a8.tar.gz
versionutils: add version convert helper methods
Nova[1] and Cinder[2] have same version convert methods. We can put them in versionutils and make them don't maintain their version. [1]https://github.com/openstack/nova/blob/master/nova/utils.py#L1044 [2]https://github.com/openstack/cinder/blob/master/cinder/utils.py#L789 Change-Id: I5a7e212bd0d661ce9ec89ae06a9f4c3bc7200d1e
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/api/versionutils.rst6
-rw-r--r--doc/source/index.rst1
2 files changed, 7 insertions, 0 deletions
diff --git a/doc/source/api/versionutils.rst b/doc/source/api/versionutils.rst
new file mode 100644
index 0000000..f75e726
--- /dev/null
+++ b/doc/source/api/versionutils.rst
@@ -0,0 +1,6 @@
+==============
+ versionutils
+==============
+
+.. automodule:: oslo_utils.versionutils
+ :members:
diff --git a/doc/source/index.rst b/doc/source/index.rst
index 7c5dcd2..eb4e8ee 100644
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -30,6 +30,7 @@ API Documentation
api/timeutils
api/units
api/uuidutils
+ api/versionutils
Indices and tables
==================