summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorTodd Willey <todd@ansolabs.com>2011-01-10 10:57:13 -0500
committerTodd Willey <todd@ansolabs.com>2011-01-10 10:57:13 -0500
commitec8e7773b79ed52aa2950db185ead881c77632f7 (patch)
tree3cdc42181c8680a1876ae3113351911c83dbc7e3 /nova/api
parentd9d334bb5520bbbc4af6760cabb9bfd022ec13ef (diff)
downloadnova-ec8e7773b79ed52aa2950db185ead881c77632f7.tar.gz
nova-ec8e7773b79ed52aa2950db185ead881c77632f7.tar.xz
nova-ec8e7773b79ed52aa2950db185ead881c77632f7.zip
Fix describe_availablity_zones versobse.
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/ec2/cloud.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/api/ec2/cloud.py b/nova/api/ec2/cloud.py
index 5360f2de7..359498d11 100644
--- a/nova/api/ec2/cloud.py
+++ b/nova/api/ec2/cloud.py
@@ -44,6 +44,7 @@ from nova.compute import instance_types
FLAGS = flags.FLAGS
+flags.DECLARE('service_down_time', 'nova.scheduler.driver')
LOG = logging.getLogger("nova.api.cloud")
@@ -200,7 +201,7 @@ class CloudController(object):
'zoneState': 'available'}]}
services = db.service_get_all(context)
- now = db.get_time()
+ now = datetime.datetime.utcnow()
hosts = []
for host in [service['host'] for service in services]:
if not host in hosts: