summaryrefslogtreecommitdiffstats
path: root/nova/image
diff options
context:
space:
mode:
authorJustin Santa Barbara <justin@fathomdb.com>2011-03-29 19:10:23 -0700
committerJustin Santa Barbara <justin@fathomdb.com>2011-03-29 19:10:23 -0700
commitf4b9e95bd143d46cd4939a3ea31de10a3e66fd90 (patch)
tree21ae1aa04632cc78b168923154fafa521d0e499b /nova/image
parent93b43cfcaeffa93b2f8ce50f473840c77be532c9 (diff)
name, created_at, updated_at are required.
I think some of the other image services might also break because of this, but that's a different issue...
Diffstat (limited to 'nova/image')
-rw-r--r--nova/image/fake.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/nova/image/fake.py b/nova/image/fake.py
index c84f7ec02..16c628091 100644
--- a/nova/image/fake.py
+++ b/nova/image/fake.py
@@ -16,6 +16,8 @@
# under the License.
"""Implementation of an fake image service"""
+import datetime
+
from nova import exception
from nova import flags
from nova import log as logging
@@ -35,7 +37,11 @@ class FakeImageService(service.BaseImageService):
self.images = {}
# NOTE(justinsb): The OpenStack API can't upload an image?
# So, make sure we've got one..
+ timestamp = datetime.datetime(2011, 01, 01, 01, 02, 03)
image = {'id': '123456',
+ 'name': 'fakeimage123456',
+ 'created_at': timestamp,
+ 'updated_at': timestamp,
'status': 'active',
'type': 'machine',
'properties': {'kernel_id': FLAGS.null_kernel,