Make objects serialize_args() handle datetimes in positional args
Remotable methods in a new TaskLog object need to serialize datatimes
passed as positional args. Right now the serialize_args() decorator only
look at kwargs.
In addition, serialization of datetimes need to use timeutils.strtime()
to match the deserialization code in the db api. Also makes this change
for serialization of kwargs to partially solve a bug with how this
decorator is used in the BandwidthUsage object.
A follow-up patch closes the bug by adding conversion back to datetimes
using existing db api helper method convert_objects_related_datetimes(),
which in turn makes use of timeutils.parse_strtime().
Reviewed: https:/ /review. openstack. org/174243 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=83cdec4123d ba74ace3439204d f9a76d0053ebe7
Committed: https:/
Submitter: Jenkins
Branch: master
commit 83cdec4123dba74 ace3439204df9a7 6d0053ebe7
Author: Hans Lindgren <email address hidden>
Date: Wed Apr 15 11:42:32 2015 +0200
Make objects serialize_args() handle datetimes in positional args
Remotable methods in a new TaskLog object need to serialize datatimes
passed as positional args. Right now the serialize_args() decorator only
look at kwargs.
In addition, serialization of datetimes need to use timeutils.strtime()
to match the deserialization code in the db api. Also makes this change
for serialization of kwargs to partially solve a bug with how this
decorator is used in the BandwidthUsage object.
A follow-up patch closes the bug by adding conversion back to datetimes objects_ related_ datetimes( ), parse_strtime( ).
using existing db api helper method convert_
which in turn makes use of timeutils.
Related to blueprint liberty-objects
Change-Id: Ia87be4fd37bee4 99510ae543e1102 9c2013d4905
Related-Bug: #1442795