Skip to content

os_patching.pinned_packages is populated incorrectly on RHEL8+ systems using python3-dnf-plugin-versionlock #243

@ghost

Description

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 7
  • Ruby: N/A
  • Distribution: RHEL
  • Module version: 0.23.0

How to reproduce (e.g Puppet code you use)

RHEL 7 is using yum-plugin-versionlock
This package leads all entries with an index in the format
[Numeric index]:[package name]-[version]

RHEL8 is using python3-dnf-plugin-versionlock
This package does not make use of an index but formats entries as
[package name]-[version]

This causes the fact to populate with package name only for RHEL7 systems, and version number only for RHEL8+ as awk is looking for a field that has been shifted left.

What are you seeing

Version numbers (such as 6.10.8) for RHEL8+ systems.
Package names (such as coreutils) for RHEL7 systems.

What behaviour did you expect instead

Package names in the pinned_packages fact for all RHEL systems

Output log

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions