def brick_detach_volume_encryptor(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.detach_volume(**encryption)

def brick_detach_volume_encryptor ( 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 . detach_volume ( ** encryption )
detach encryption layer .