Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-2212

ini_subsetting - not adding setting that is substring of existing setting

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: inifile
    • Environment:

      RHEL7

    • Template:
    • Story Points:
      2
    • Sprint:
      MODS 2015-08-05

      Description

      I was validating that ini_subsetting was working as I understood it should, and found that it does not properly set values if the line contains the string already.

      Example:

      /etc/sssd/sssd.conf:

      [sssd]
      services = nss, sudo, pam, ssh, autofs
      

          ini_subsetting {'etc_sss_sssd_sssd_services_autofs':
            ensure               => present,
            path                 => '/etc/sssd/sssd.conf',
            subsetting_separator => ', ',
            section              => 'sssd',
            setting              => 'services',
            subsetting           => 'autofs',
          }
      

      But if I update sssd.conf to:
      /etc/sssd/sssd.conf:

      [sssd]
      services = nss, sudo, pam, ssh, autofs2
      

      Then the autofs line is not added on the next run.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                overholw Warren Overholt
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support