summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSoren Hansen <soren@linux2go.dk>2011-02-09 13:22:10 +0100
committerSoren Hansen <soren@linux2go.dk>2011-02-09 13:22:10 +0100
commitfef2b4edaaf77109457dc2bf80e7f845a65a129e (patch)
tree56f0e1ed1985a659a40a640a8fde77f0881106ce
parent035136525ef7944d3da4dcf8a4b0d28840bdfae3 (diff)
downloadnova-fef2b4edaaf77109457dc2bf80e7f845a65a129e.tar.gz
nova-fef2b4edaaf77109457dc2bf80e7f845a65a129e.tar.xz
nova-fef2b4edaaf77109457dc2bf80e7f845a65a129e.zip
Don't convert datetime objects to a string using .isoformat(). Leave it to sqlalchmeny (or pysqlite or whatever it is that does the magic) to work it out.
-rw-r--r--nova/db/sqlalchemy/api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/db/sqlalchemy/api.py b/nova/db/sqlalchemy/api.py
index 85250d56e..80c844635 100644
--- a/nova/db/sqlalchemy/api.py
+++ b/nova/db/sqlalchemy/api.py
@@ -579,7 +579,7 @@ def fixed_ip_disassociate_all_by_timeout(_context, host, time):
'AND instance_id IS NOT NULL '
'AND allocated = 0',
{'host': host,
- 'time': time.isoformat()})
+ 'time': time})
return result.rowcount