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 /nova/virt | |
| parent | 8b6de21b5ed4248998eef7deb57b1bc4f3863276 (diff) | |
| download | nova-b2fb1738db489206557abccb631b13991c31fd4e.tar.gz nova-b2fb1738db489206557abccb631b13991c31fd4e.tar.xz nova-b2fb1738db489206557abccb631b13991c31fd4e.zip | |
make all uses of utcnow use our testable utils.utcnow
Diffstat (limited to 'nova/virt')
| -rw-r--r-- | nova/virt/xenapi/fake.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/virt/xenapi/fake.py b/nova/virt/xenapi/fake.py index 76988b172..165888cb2 100644 --- a/nova/virt/xenapi/fake.py +++ b/nova/virt/xenapi/fake.py @@ -51,13 +51,13 @@ A fake XenAPI SDK. """ -import datetime import uuid from pprint import pformat from nova import exception from nova import log as logging +from nova import utils _CLASSES = ['host', 'network', 'session', 'SR', 'VBD', @@ -540,7 +540,7 @@ class SessionBase(object): except Failure, exc: task['error_info'] = exc.details task['status'] = 'failed' - task['finished'] = datetime.datetime.now() + task['finished'] = utils.utcnow() return task_ref def _check_session(self, params): |
