diff options
author | zhiyanliu <lzy.dev@gmail.com> | 2012-12-24 11:22:45 +0800 |
---|---|---|
committer | zhiyanliu <lzy.dev@gmail.com> | 2012-12-24 11:22:45 +0800 |
commit | e12a6f61bb3d9ce2ebad4ea3aa97dc6455f692cc (patch) | |
tree | 52b3dcf839f5a65b2164efa4ed6b645d55a86286 /nova/utils.py | |
parent | 1836ede3c57ecb255fe9dcf0f2ea3c880af3d201 (diff) | |
download | nova-e12a6f61bb3d9ce2ebad4ea3aa97dc6455f692cc.tar.gz nova-e12a6f61bb3d9ce2ebad4ea3aa97dc6455f692cc.tar.xz nova-e12a6f61bb3d9ce2ebad4ea3aa97dc6455f692cc.zip |
Ensure datetimes can be properly serialized.
The nova-network manager was returning db models from methods invoked
via rpc.call(). These db models include non-primitive types that can
not be properly serialized (namely datetime objects). Use
to_primitive() to ensure that the data gets serialized properly.
Fix bug: #1089430
Change-Id: I0519e88444b8fcc3af5e43170ea07dd966ccef05
Signed-off-by: zhiyanliu <lzy.dev@gmail.com>
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions