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

Ensuring absent on a yumrepo removes all repos in the same file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 3.5.0
    • Fix Version/s: PUP 3.5.1
    • Component/s: Types and Providers
    • Labels:
      None
    • Template:
    • Story Points:
      1
    • Sprint:
      Week 2014-4-09 to 2014-4-16

      Description

      Puppet 3.5.0 made yumrepos ensurable, but implemented this by removing the associated file with the yumrepo. If two yumrepos were defined in the same file, 'ensure => absent', the entire file would be removed which would delete any other yumrepo instances in the file.

      When removing a yumrepo, we should only remove the associated file if no other yumrepos/INI sections are defined in that file. If there are other sections we should remove the section in question and modify nothing else.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              adrien Adrien Thebo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support