diff options
| author | Todd Willey <todd@ansolabs.com> | 2011-01-10 20:29:42 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-01-10 20:29:42 +0000 |
| commit | 16c420ee156f8c7716c7e84b66af35cbccf5090c (patch) | |
| tree | f45ae4b30d9e80a80d3f746c4bea65f688dac961 /nova/api | |
| parent | 5e9eab1d477189fb3283842375d0665370cc5a1a (diff) | |
| parent | ec8e7773b79ed52aa2950db185ead881c77632f7 (diff) | |
Bugfix.
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/ec2/cloud.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/api/ec2/cloud.py b/nova/api/ec2/cloud.py index 7f1a414f3..99a9677c4 100644 --- a/nova/api/ec2/cloud.py +++ b/nova/api/ec2/cloud.py @@ -42,6 +42,7 @@ from nova.compute import instance_types FLAGS = flags.FLAGS +flags.DECLARE('service_down_time', 'nova.scheduler.driver') LOG = logging.getLogger("nova.api.cloud") @@ -198,7 +199,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: |
