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

inifile: ensure absent not working with refreshonly = true

    Details

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

      Puppet 5.4

      Inifile version 2.2.0

    • QA Risk Assessment:
      Needs Assessment

      Description

      When removing a setting in a section with refreshonly set to true the setting is not completely removed. Only the value is removed.

      Create a file using:
      ini_setting { "testing":
      ensure => present,
      path => '/tmp/t.txt',
      section => 'section1',
      setting => 'valueinsection1',
      value => 123,
      }
       
      This should remove the setting.
      exec { 'testexec':
      command => '/bin/true',
      notify => Ini_Setting['testing'],
      }

      ini_setting { "testing":
      ensure => absent,
      path => '/tmp/t.txt',
      section => 'section1',
      setting => 'valueinsection1',
      refreshonly => true,
      }
       
      It works if I set refreshonly to false.
       

        Attachments

          Activity

            People

            • Assignee:
              lavinia.foldenyi Lavinia Dan
              Reporter:
              rogermartensson Roger Mårtensson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support