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

registry_value sometimes adding a ? to array data

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: registry
    • Labels:
      None
    • Template:
    • Epic Link:
    • Team:
      Windows

      Description

      Finding that puppetlabs/registry seems to (randomly) report a ? as an extra item in an value with type array.

      # string1.pp
      registry_value { 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PagingFiles':
                     ensure => present,
                     data => 'C:\pagefile.sys 4872 8542',
                     type => array,
      }
       
      # string2.pp
      registry_value { 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PagingFiles':
                     ensure => present,
                     data => 'C:\pagefile.sys 8738 9832',
                     type => array,
      }
      

      Going back and forth between applying these two files, we get a blank array element even though code is doing :array_matching => all.

      C:\Users\myuser\Documents>puppet apply string2.pp
      Notice: Compiled catalog for dwe-eu4-a151.fanniemae.com in environment production in 0.56 seconds
      Notice: /Stage[main]/Main/Registry_value[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PagingFiles]/data:
      data changed 'C:\pagefile.sys 4872 8542' to 'C:\pagefile.sys 8738 9832'
      Notice: Applied catalog in 0.39 seconds
       
      C:\Users\myuser\Documents>puppet apply string1.pp
      Notice: Compiled catalog for dwe-eu4-a151.fanniemae.com in environment production in 0.56 seconds
      Notice: /Stage[main]/Main/Registry_value[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PagingFiles]/data:
      data changed 'C:\pagefile.sys 8738 9832' to 'C:\pagefile.sys 4872 8542'
      Notice: Applied catalog in 0.38 seconds
       
      C:\Users\myuser\Documents>puppet apply string2.pp
      Notice: Compiled catalog for dwe-eu4-a151.fanniemae.com in environment production in 0.55 seconds
      Notice: /Stage[main]/Main/Registry_value[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PagingFiles]/data:
      data changed 'C:\pagefile.sys 4872 8542' to 'C:\pagefile.sys 8738 9832'
      Notice: Applied catalog in 0.38 seconds
       
      C:\Users\myuser\Documents>puppet apply string1.pp
      Notice: Compiled catalog for dwe-eu4-a151.fanniemae.com in environment production in 0.55 seconds
      Notice: /Stage[main]/Main/Registry_value[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PagingFiles]/data:
      data changed 'C:\pagefile.sys 8738 9832,?' to 'C:\pagefile.sys 4872 8542'
      Notice: Applied catalog in 0.41 seconds
       
      C:\Users\myuser\Documents>puppet apply string2.pp
      Notice: Compiled catalog for dwe-eu4-a151.fanniemae.com in environment production in 0.53 seconds
      Notice: /Stage[main]/Main/Registry_value[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PagingFiles]/data:
      data changed 'C:\pagefile.sys 4872 8542' to 'C:\pagefile.sys 8738 9832'
      Notice: Applied catalog in 0.47 seconds
       
      C:\Users\myuser\Documents>puppet apply string1.pp
      Notice: Compiled catalog for dwe-eu4-a151.fanniemae.com in environment production in 0.56 seconds
      Notice: /Stage[main]/Main/Registry_value[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PagingFiles]/data:
      data changed 'C:\pagefile.sys 8738 9832,?' to 'C:\pagefile.sys 4872 8542'
      Notice: Applied catalog in 0.48 seconds
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ranjit Ranjit Viswakumar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Zendesk Support