Skip to content

dnf_module_stream doesn't disable module #356

Description

@timeweaver

trying to use this to disable the posgresql module,
dnf_module_stream { 'postgresql':
module => 'postgresql',
stream => absent,
}

2 issues -

  1. without the module parameter, it threw an error
    Could not evaluate: Module "" not found

  2. After adding the module parameter, it runs, but does nothing.
    I'm not a ruby programmer, but I dug into the code anyway. It looks like when I specify disable
    ruby is actually sending "reset" to the dnf module command rather than 'disable'.

def disable_stream(module_name)
dnf('-y', 'module', 'reset', module_name)
end

Running this on RHEL 8.10 client

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions