You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The multiple values separated by the ";" is causing the puppet to set the env variable on EVERY run.
What behaviour did you expect instead
Puppet should set the value ONLY once.
Output log
2017-03-24
14:18 Z
notice
created
Source: /Stage[main]/Profile::Windows::Set_cms_storage_conn_string_env/Windows_env[CMS_STORAGE_CONNECTION_STRING]/ensureFile: /etc/puppetlabs/code/environments/intjp/modules/profile/manifests/windows/set_cms_storage_conn_string_env.ppLine: 13
Any additional information you'd like to impart
";" is causing the issue and it is a bug in the module.
The text was updated successfully, but these errors were encountered:
Without having looked at this too closely, I would expect changing:
value => 'DefaultEndpointsProtocol=https;AccountName=produssccms01;AccountKey=7pAHD8y',
to
value => ['DefaultEndpointsProtocol=https', 'AccountName=produssccms01', 'AccountKey=7pAHD8y'],
would resolve this. If managing each of the elements of the connection string as separate entries is the wrong semantics for this environment variable, then setting separator to a value other than ; and leaving the value as it was originally should also resolve it. I think a change to the module that detects when you've included the separator character in the value string and advises would be reasonable too. Allowing nil separators could be useful too, when you want the module to just leave the string alone.
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
windows_env { 'CMS_STORAGE_CONNECTION_STRING':
ensure => present,
variable => 'CMS_STORAGE_CONNECTION_STRING',
value => 'DefaultEndpointsProtocol=https;AccountName=produssccms01;AccountKey=7pAHD8y',
mergemode => clobber,
}
What are you seeing
The multiple values separated by the ";" is causing the puppet to set the env variable on EVERY run.
What behaviour did you expect instead
Puppet should set the value ONLY once.
Output log
2017-03-24
14:18 Z
notice
created
Source: /Stage[main]/Profile::Windows::Set_cms_storage_conn_string_env/Windows_env[CMS_STORAGE_CONNECTION_STRING]/ensureFile: /etc/puppetlabs/code/environments/intjp/modules/profile/manifests/windows/set_cms_storage_conn_string_env.ppLine: 13
Any additional information you'd like to impart
";" is causing the issue and it is a bug in the module.
The text was updated successfully, but these errors were encountered: