summaryrefslogtreecommitdiffstats
path: root/openstack/common/plugin/pluginmanager.py
diff options
context:
space:
mode:
authorRussell Bryant <rbryant@redhat.com>2012-07-16 10:30:25 -0400
committerRussell Bryant <rbryant@redhat.com>2012-07-16 10:39:44 -0400
commitce3071437d1871f77c4d8573cbe5f4ea8c817650 (patch)
tree5a9f6f292d96d94c762f7e3873d951e43903a47f /openstack/common/plugin/pluginmanager.py
parent2adaf2ffafdb67bd237578f094b78d15da17b772 (diff)
downloadoslo-ce3071437d1871f77c4d8573cbe5f4ea8c817650.tar.gz
oslo-ce3071437d1871f77c4d8573cbe5f4ea8c817650.tar.xz
oslo-ce3071437d1871f77c4d8573cbe5f4ea8c817650.zip
Use strtime() in to_primitive() for datetime objs.
This patch updates jsonutils.to_primitive() to use timeutils.strtime() to convert a datimetime object to a string instead of just using str(). This ensures that we can easily convert the string back to a datetime using timeutils.parse_strtime(). Required for the nova blueprint no-db-messaging. Change-Id: I725b333695930e12e2832378102514326fec639c
Diffstat (limited to 'openstack/common/plugin/pluginmanager.py')
0 files changed, 0 insertions, 0 deletions