def brick_attach_volume_encryptor(context, attach_info, encryption):
 connection_info = attach_info['conn']
 connection_info['data']['device_path'] = attach_info['device']['path']
 encryptor = brick_get_encryptor(connection_info, **encryption)
 encryptor.attach_volume(context, **encryption)

def brick_attach_volume_encryptor ( context , attach_info , encryption ) : connection_info = attach_info [ 'conn' ] connection_info [ 'data' ] [ 'device_path' ] = attach_info [ 'device' ] [ 'path' ] encryptor = brick_get_encryptor ( connection_info , ** encryption ) encryptor . attach_volume ( context , ** encryption )
attach encryption layer .