Dnf_package options not working

dnf_package doesn't seem to support options for the package query (yum_package works ok). As you can see below the options aren't passed to the package query

package [node['wbc']['rhel']['ganglia']['package']] do
action :install
options ['--enablerepo=rhcp_artifactory']
end

provider/package/yum.rb
#####################################
def available_version(index)
@available_version ||=

      @available_version[index] ||= if new_resource.source
                                      resolve_source_to_version_obj
                                    else
                                      python_helper.package_query(:whatavailable, package_name_array[index], version: safe_version_array[index], arch: safe_arch_array[index], options: options)
                                    end

      @available_version[index]
    end

#####################################

provider/package/dnf.rb
#####################################
def available_version(index)
@available_version ||=

      @available_version[index] ||= if new_resource.source
                                      resolve_source_to_version_obj
                                    else
                                      python_helper.query(:whatavailable, package_name_array[index], safe_version_array[index], safe_arch_array[index])
                                    end

      @available_version[index]
    end

#####################################

Is anyone able to assist with this?