diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-06-02 14:23:05 -0700 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-06-02 14:23:05 -0700 |
| commit | b2fb1738db489206557abccb631b13991c31fd4e (patch) | |
| tree | b18296adbef3f577dcf2b073073196a772ac3787 /bin | |
| parent | 8b6de21b5ed4248998eef7deb57b1bc4f3863276 (diff) | |
make all uses of utcnow use our testable utils.utcnow
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/nova-manage | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/nova-manage b/bin/nova-manage index 5de4d9e81..b545c4246 100755 --- a/bin/nova-manage +++ b/bin/nova-manage @@ -53,7 +53,6 @@ CLI interface for nova management. """ -import datetime import gettext import glob import json @@ -689,7 +688,7 @@ class ServiceCommands(object): """Show a list of all running services. Filter by host & service name. args: [host] [service]""" ctxt = context.get_admin_context() - now = datetime.datetime.utcnow() + now = utils.utcnow() services = db.service_get_all(ctxt) if host: services = [s for s in services if s['host'] == host] |
