diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-06-18 17:02:19 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-06-18 17:02:19 +0000 |
| commit | 5bfa8a70e8b11f68deb101c872eace27d7a3b1b4 (patch) | |
| tree | 9c298941f50a7b080518efc53016ec89426496a3 /bin | |
| parent | 60ea96b288d9d8f29d772dce3763fda466c73040 (diff) | |
| parent | 9ff3121bd90133fb3b37c0e10407b5f7ade26b90 (diff) | |
Merge "Replaces functions in utils.py with openstack/common/timeutils.py"
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/nova-manage | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/nova-manage b/bin/nova-manage index be1159f54..5414e4e5e 100755 --- a/bin/nova-manage +++ b/bin/nova-manage @@ -90,6 +90,7 @@ from nova import log as logging from nova.openstack.common import cfg from nova.openstack.common import importutils from nova.openstack.common import jsonutils +from nova.openstack.common import timeutils from nova import quota from nova import rpc from nova.scheduler import rpcapi as scheduler_rpcapi @@ -968,7 +969,7 @@ class ServiceCommands(object): Show a list of all running services. Filter by host & service name. """ ctxt = context.get_admin_context() - now = utils.utcnow() + now = timeutils.utcnow() services = db.service_get_all(ctxt) if host: services = [s for s in services if s['host'] == host] @@ -1083,7 +1084,7 @@ class HostCommands(object): print "%-25s\t%-15s" % (_('host'), _('zone')) ctxt = context.get_admin_context() - now = utils.utcnow() + now = timeutils.utcnow() services = db.service_get_all(ctxt) if zone: services = [s for s in services if s['availability_zone'] == zone] |
