ec2-api/ec2api
chenghuiyu c65cb663de Fix usage of isotime
The commit I34b12b96de3ea21beaf935ed8a9f6bae2fe0d0bc and
Ib384ae8130dcc6cbd47a837d11ca171ce02ef29e introduced the
deprecated oslo_utils.timeutils.isotime() is deprecated
as of 1.6.

The deprecation message says to use the datetime.datetime.isoformat()
instead, but 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 ec2api.api.ec2utils.

For more informations:
https://docs.openstack.org/oslo.utils/latest/reference/timeutils.html

Change-Id: Id62fb53264b04a7ea6ae3035a129353c5cfa040a
Closes-Bug: #1461251
2018-06-29 16:00:40 +03:00
..
api Fix usage of isotime 2018-06-29 16:00:40 +03:00
cmd Don't attempt to escalate ec2-api-manage privileges 2016-10-24 09:56:07 +00:00
db fix DB migration for MySQL 2018-01-10 05:25:43 +00:00
hacking Delete log translation functions and add hacking rule 2017-07-03 04:14:44 -04:00
metadata fix ec2-api-metadata memcached overlap with nova-api 2017-09-15 13:42:20 +02:00
s3 Replace six.iteritems() with .items() 2017-04-20 09:42:45 +00:00
tests Fix usage of isotime 2018-06-29 16:00:40 +03:00
__init__.py py34: fix gettext installing 2015-09-09 16:44:28 +03:00
clients.py remove deprecated options 2018-01-18 14:45:37 +03:00
config.py Remove code that used nova-cert 2017-07-07 11:35:22 +03:00
context.py Remove log translations 2017-05-11 13:43:05 +07:00
exception.py Delete log translation functions and add hacking rule 2017-07-03 04:14:44 -04:00
i18n.py Remove log translations 2017-05-11 13:43:05 +07:00
opts.py synchronize default vpc creation across threads 2018-03-24 00:49:01 +03:00
paths.py remove unused configuration options 2017-10-20 13:48:00 +03:00
service.py remove unused configuration options 2017-10-20 13:48:00 +03:00
utils.py remove unused configuration options 2017-10-20 13:48:00 +03:00
version.py Update copyright 2014-11-11 21:02:39 +04:00
wsgi.py add ssl_ca_cert option to check client cert 2018-01-18 14:49:08 +03:00