Stop using deprecated oslo_utils.timeutils.isotime
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Fix Released
|
Undecided
|
Tuan |
Bug Description
The function 'oslo_utils.
version '1.6' and will be removed in a future version.
We are using datetime.
The string is used in tokens and other public APIs and we can't change it without potentially breaking clients.Thus, the workaround is to copy the current implementation from oslo_utils.
[1]http://
Changed in manila: | |
assignee: | nobody → Tuan (tuanla) |
status: | New → In Progress |
Reviewed: https:/ /review. openstack. org/468824 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=ac60df2beb1 e6b0fcfc384c858 ecf2139307a332
Committed: https:/
Submitter: Jenkins
Branch: master
commit ac60df2beb1e6b0 fcfc384c858ecf2 139307a332
Author: Luong Anh Tuan <email address hidden>
Date: Mon May 29 23:31:39 2017 +0700
Replace oslo_utils. timeutils. isotime
Function 'oslo_utils. timeutils. isotime( )' is deprecated in version '1.6' datetime. isoformat( ) instead. Because the format of the string
and will be removed in a future version. We can't use
datetime.
generated by isoformat isn't the same as the format of the string
generated by isotime. The string is used in tokens and other public
APIs and we can't change it without potentially breaking clients.
So the workaround is to copy the current implementation from utils.timeutils .isotime( ) to utils.py
oslo_
For more informations: docs.openstack. org/developer/ oslo.utils/ api/timeutils. html#oslo_ utils.timeutils .isotime
http://
APIImpact
Closes-Bug: #1694352
Change-Id: I2feb85b7f698ae 456493d02a118bb 3fb969835da