fix more casing errors and make attachment set print
This commit is contained in:
@@ -262,7 +262,7 @@ class CloudController(object):
|
||||
volume.get('node_name', None),
|
||||
volume.get('instance_id', ''),
|
||||
volume.get('mountpoint', ''))
|
||||
if volume['status'] == 'attached':
|
||||
if volume['attach_status'] == 'attached':
|
||||
v['attachmentSet'] = [{'attachTime': volume['attach_time'],
|
||||
'deleteOnTermination': volume['delete_on_termination'],
|
||||
'device' : volume['mountpoint'],
|
||||
|
||||
@@ -165,11 +165,11 @@ class Volume(datastore.RedisModel):
|
||||
vol['availability_zone'] = FLAGS.storage_availability_zone
|
||||
vol["instance_id"] = 'none'
|
||||
vol["mountpoint"] = 'none'
|
||||
vol['attachTime'] = 'none'
|
||||
vol['attach_time'] = 'none'
|
||||
vol["create_time"] = time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime())
|
||||
vol['status'] = "creating" # creating | available | in-use
|
||||
vol['attachStatus'] = "detached" # attaching | attached | detaching | detached
|
||||
vol['deleteOnTermination'] = 'False'
|
||||
vol['attach_status'] = "detached" # attaching | attached | detaching | detached
|
||||
vol['delete_on_termination'] = 'False'
|
||||
vol.save()
|
||||
vol.create_lv()
|
||||
vol.setup_export()
|
||||
|
||||
Reference in New Issue
Block a user