Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-2363

yumrepo priority absent is still broken.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: PUP 3.5.1
    • Fix Version/s: None
    • Component/s: Types and Providers
    • Labels:
      None
    • Environment:

      open source puppet on RHEL6

    • Template:

      Description

      According to the types reference documentation:

      http://docs.puppetlabs.com/references/latest/type.html#yumrepo-attribute-priority

      the priority attribute can also take the value 'absent' which should mean that the priority is removed from the repo file, but puppet 3.5.1 currently complains:

      $ puppet apply --verbose /tmp/test.pp
      Error: Parameter priority failed on Yumrepo[test]: Must be within range 1-99 at /tmp/test.pp:3
      Wrapped exception:
      Must be within range 1-99

      $ cat /tmp/test.pp
      yumrepo

      { 'test': priority => absent, }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              smithj4 Jason A. Smith
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support