Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnfmodule fails to enable module with ensure version and no default stream #9142

Closed
evgeni opened this issue Nov 4, 2023 · 2 comments
Closed
Labels
bug Something isn't working triaged Jira issue has been created for this

Comments

@evgeni
Copy link
Contributor

evgeni commented Nov 4, 2023

Describe the Bug

the old code would work correctly for ensure => present, but not for ensure => 'some_stream', as dnf does include the whole module spec in the error message and the old regex didn't match anymore.

# dnf module install -d 0 -e 1 -y 389-ds
Error: Problems in request:
broken groups or modules: 389-ds

# dnf module install -d 0 -e 1 -y 389-ds:1.4
Error: Problems in request:
broken groups or modules: 389-ds:1.4

Expected Behavior

module is correctly enabled by switching to the "enable only" codepath automatically

Steps to Reproduce

package { '389-ds':
  ensure => '1.4',
  provider => dnfmodule,
}

Environment

  • Version 7.26
  • Platform CentOS Stream 8

Additional Context

Setting enable_only => true avoids the issue, but the code should be able to figure this out itself.
See voxpupuli/puppet-nodejs#488

@evgeni evgeni added the bug Something isn't working label Nov 4, 2023
@joshcooper joshcooper added the triaged Jira issue has been created for this label Nov 6, 2023
Copy link

github-actions bot commented Nov 6, 2023

Migrated issue to PUP-11985

@joshcooper
Copy link
Contributor

Fixed in #9138

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triaged Jira issue has been created for this
Projects
None yet
Development

No branches or pull requests

2 participants