Puppet: System Administration Automated

Support

Ticket #696 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

yum provider does not escape metacharacters in package names.

Reported by: jasonkohles Assigned to: lutter
Priority: normal Milestone: beaker
Component: types Version: 0.23.0
Severity: normal Keywords: yum
Cc: Triage Stage: Ready for checkin
Attached Patches: Code Complexity: Unknown

Description (Last modified by luke)

I have a class for setting up a build_server, that basically looks like this:

class build_server {
    package { [
        gcc, subversion, rpm-build, gcc-c++,
    ]: ensure => latest }
}

This always fails because...

err: //build_server/Package[gcc-c++]: Failed to retrieve current state of resource: Could not get latest version: nested *?+ in regexp: /^gcc-c++\S+\s+(\S+)\s/

Tried adding quotes around the package name with the same result.

Attachments

puppet-bug-696.patch (0.5 kB) - added by jasonkohles on 06/29/07 19:51:41.
Patch!

Change History

06/29/07 19:51:41 changed by jasonkohles

  • attachment puppet-bug-696.patch added.

Patch!

07/04/07 21:30:08 changed by luke

  • owner changed from luke to lutter.
  • description changed.
  • milestone set to beaker.

07/04/07 21:34:57 changed by luke

  • stage changed from Unreviewed to Ready for checkin.

07/04/07 21:35:05 changed by luke

  • patch changed from None to Code.

07/19/07 02:48:47 changed by lutter

  • status changed from new to closed.
  • resolution set to fixed.

Thanks for figuring this out. Patch applied in r2710