summaryrefslogtreecommitdiffstats
path: root/nova/volume
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2010-06-24 04:11:57 +0100
committerandy <github@anarkystic.com>2010-06-24 04:11:57 +0100
commit9d5f9e12e2bb9e87804459e943a4e3484d5c1f1a (patch)
tree1ba30317dc75498fc83aa66a8a001698f9641966 /nova/volume
parent090186c12f3b6985fea6e01e23c3366bf130e5ea (diff)
fix case for volume attributes
Diffstat (limited to 'nova/volume')
-rw-r--r--nova/volume/storage.py12
1 files changed, 6 insertions, 6 deletions
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):