diff options
| author | Todd Willey <todd@ansolabs.com> | 2011-01-10 10:57:13 -0500 |
|---|---|---|
| committer | Todd Willey <todd@ansolabs.com> | 2011-01-10 10:57:13 -0500 |
| commit | ec8e7773b79ed52aa2950db185ead881c77632f7 (patch) | |
| tree | 3cdc42181c8680a1876ae3113351911c83dbc7e3 /nova/api | |
| parent | d9d334bb5520bbbc4af6760cabb9bfd022ec13ef (diff) | |
| download | nova-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.py | 3 |
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: |
