yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #60162
[Bug 1461251] Re: Stop using deprecated oslo_utils.timeutils.isotime
Reviewed: https://review.openstack.org/394226
Committed: https://git.openstack.org/cgit/openstack/cloudkitty/commit/?id=932b5feb7c489bda748c8bc50efa7fa9bbff21ba
Submitter: Jenkins
Branch: master
commit 932b5feb7c489bda748c8bc50efa7fa9bbff21ba
Author: Luong Anh Tuan <tuanla@xxxxxxxxxxxxxx>
Date: Mon Nov 7 09:01:58 2016 +0700
Replace oslo_utils.timeutils.isotime
Function 'oslo_utils.timeutils.isotime()' is deprecated in version '1.6'
and will be removed in a future version. We cant't use
datetime.datetime.isoformat() instead. Because the format of the string
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
oslo_utils.timeutils.isotime() to utils.py
For more informations:
http://docs.openstack.org/developer/oslo.utils/api/timeutils.html#oslo_utils.timeutils.isotime
Change-Id: Ib384ae8130dcc6cbd47a837d11ca171ce02ef29e
Closes-Bug: #1461251
** Changed in: cloudkitty
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1461251
Title:
Stop using deprecated oslo_utils.timeutils.isotime
Status in cloudkitty:
Fix Released
Status in OpenStack Identity (keystone):
Fix Released
Status in oslo.utils:
New
Status in python-keystoneclient:
Fix Released
Bug description:
oslo_utils.timeutils.isotime() is deprecated as of 1.6 so we need to
stop using it.
This breaks unit tests in keystone since we've got a check for calling
deprecated functions.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloudkitty/+bug/1461251/+subscriptions
References