summaryrefslogtreecommitdiffstats
path: root/nova/utils.py
diff options
context:
space:
mode:
authorDan Smith <danms@us.ibm.com>2013-06-03 09:41:01 -0700
committerDan Smith <danms@us.ibm.com>2013-06-03 10:25:50 -0700
commit820135933168feeb6320a23555ca0ebf5e14fa08 (patch)
tree1c66143a56aec79b5b95638ecc842387360b6430 /nova/utils.py
parent275e673e90c2a00d45451a232ffd66e7a9618174 (diff)
downloadnova-820135933168feeb6320a23555ca0ebf5e14fa08.tar.gz
nova-820135933168feeb6320a23555ca0ebf5e14fa08.tar.xz
nova-820135933168feeb6320a23555ca0ebf5e14fa08.zip
Make instance object tolerate isotime strings
Any time we get a db object over RPC, the datetime has been serialized to an isotime string. We have other legacy code that needs to tolerate this, and those hacks would need to be replicated in the objects transition. Instead, make the instance object type function tolerate isotime-formatted strings so that we can more easily convert RPC-transited database objects until we're fully converted, at which time we could remove the tolerance. Luckily, the objects still end up with a datetime internally, which means the rest of the code can stop needing to handle strings and datetimes gracefully. Related to blueprint unified-object-model Change-Id: I132559d3541d19353de6acc36a2740185e564105
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions