Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected symbol/character added to end of variable value when mergemode => clobber #100

Open
lucraftm opened this issue Feb 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@lucraftm
Copy link

lucraftm commented Feb 1, 2024

Describe the Bug

When declaring a variable using mergemode clobber, the value in the registry has the following character appended at the end:

倀

For example, value data would show as:

C:\software\tomcat倀

Expected Behavior

The registry value data should display as:

C:\software\tomcat

Steps to Reproduce

Declare resource as follows:

windows_env {'CATALINA_HOME':
  ensure    => present,
  variable  => 'CATALINA_HOME',
  value     => 'C:\software\tomcat',
  mergemode => clobber,
}

After puppet run, go to registry location below to view applied values for variable:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

Environment

  • Puppet Agent Version: 8.4.0
  • Platform: Windows Server 2016

Additional Context

Screenshot of the issue:

image

@lucraftm lucraftm added the bug Something isn't working label Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant