def _get_system_volume(vm_):
 ssh_keys = get_public_keys(vm_)
 disk_size = get_size(vm_)['disk']
 if ('disk_size' in vm_):
  disk_size = vm_['disk_size']
 volume = Volume(name='{0} Storage'.format(vm_['name']), size=disk_size, image=get_image(vm_)['id'], disk_type=get_disk_type(vm_), ssh_keys=ssh_keys)
 if ('disk_availability_zone' in vm_):
  volume.availability_zone = vm_['disk_availability_zone']
 return volume

def _get_system_volume ( vm_ ) : ssh_keys = get_public_keys ( vm_ ) disk_size = get_size ( vm_ ) [ 'disk' ] if ( 'disk_size' in vm_ ) : disk_size = vm_ [ 'disk_size' ] volume = Volume ( name = '{0} Storage' . format ( vm_ [ 'name' ] ) , size = disk_size , image = get_image ( vm_ ) [ 'id' ] , disk_type = get_disk_type ( vm_ ) , ssh_keys = ssh_keys ) if ( 'disk_availability_zone' in vm_ ) : volume . availability_zone = vm_ [ 'disk_availability_zone' ] return volume
construct vm system volume list from cloud profile config .