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.
Reviewed: https:/ /review. openstack. org/18610 github. com/openstack/ nova/commit/ e12a6f61bb3d9ce 2ebad4ea3aa97dc 6455f692cc
Committed: http://
Submitter: Jenkins
Branch: master
commit e12a6f61bb3d9ce 2ebad4ea3aa97dc 6455f692cc
Author: zhiyanliu <email address hidden>
Date: Mon Dec 24 11:22:45 2012 +0800
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: I0519e88444b8fc c3af5e43170ea07 dd966ccef05
Signed-off-by: zhiyanliu <email address hidden>