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

yumrepo module is too picky about white space

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 3.4.3
    • Fix Version/s: PUP 3.5.0
    • Component/s: Types and Providers
    • Labels:
    • Environment:

      Puppet 3.4, RHEL 6.5 x86_64

    • Template:

      Description

      Where white space exists in a a yum repo file, Puppet yumrepo insists on removing the whitespace. A yum plug-in (subscription-manager, it seems) sets the values as:

      enabled = 0

      Puppet insists on changing this valid entry to

      enabled=0

      Expected behaviour is that yumrepo allows the white space and only changes the value.

      For example, take the following existing config

      [myrepo]
      enabled = 1
      

      The yumrepo call::

      yumrepo { 'myrepo':
        enabled = 0
      }
      

      The output for the yum repo would be expected to be:

      [myrepo]
      enabled = 0
      

      That is, it leaves the whitespace untouched.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  chuck Charlie Sharpsteen
                  Reporter:
                  mattwillsher Matt Willsher
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: