def break_connection(module, array, target_array):
    """Break connection between arrays"""
    changed = True
    if not module.check_mode:
        source_array = array.get()['array_name']
        try:
            array.disconnect_array(target_array['array_name'])
        except Exception:
            module.fail_json(msg='Failed to disconnect {0} from {1}.'.
                format(target_array['array_name'], source_array))
    module.exit_json(changed=changed)
