def _set_preferred_array(module, array):
    """Set preferred array list. Only called when supported"""
    if module.params['preferred_array'] != ['delete']:
        array.set_host(module.params['host'], preferred_array=module.params
            ['preferred_array'])
    else:
        array.set_host(module.params['host'], personality='')
