From 9d5f9e12e2bb9e87804459e943a4e3484d5c1f1a Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Thu, 24 Jun 2010 04:11:57 +0100 Subject: fix case for volume attributes --- nova/volume/storage.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'nova/volume') diff --git a/nova/volume/storage.py b/nova/volume/storage.py index 7da5afe20..85ba85138 100644 --- a/nova/volume/storage.py +++ b/nova/volume/storage.py @@ -186,26 +186,26 @@ class Volume(datastore.RedisModel): self['instance_id'] = instance_id self['mountpoint'] = mountpoint self['status'] = "in-use" - self['attachStatus'] = "attaching" - self['attachTime'] = time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime()) - self['deleteOnTermination'] = 'False' + self['attach_status'] = "attaching" + self['attach_time'] = time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime()) + self['delete_on_termination'] = 'False' self.save() def finish_attach(self): """ """ - self['attachStatus'] = "attached" + self['attach_status'] = "attached" self.save() def start_detach(self): """ """ - self['attachStatus'] = "detaching" + self['attach_status'] = "detaching" self.save() def finish_detach(self): self['instance_id'] = None self['mountpoint'] = None self['status'] = "available" - self['attachStatus'] = "detached" + self['attach_status'] = "detached" self.save() def destroy(self): -- cgit