(Modules 4377) Causes ensure_packages to accept concurrent declarations with ensure => 'present' and 'installed'#716
Conversation
If user declares ensure_package concurrently with ensure values 'present' and 'installed', function fails as if values were different Change causes function to interpret ensure => 'installed' as 'present', effectively elliminating the error Also works if user doesn't specify ensure value, since 'present' is the default
|
I would appreciate some help regarding the failed checks. They don't seem to be related to my commits, but I'm not sure. I also found 2 excerpts that called my attention regarding the errors: Gemfilelib/puppet/parser/functions/ensure_resources.rbDoes this tell anything? Thanks a lot. |
|
Still regarding the test error, there is a question in Ask Puppet reporting the exact same error, and also related to the exact same test: |
|
Seems like a bug in Beaker: |
|
+1 - We have run into this too. |
|
Seems like commit 2c6c2ff fixed the errors. |
|
Thanks for the PR @EmersonPrado good work !!! |
If user declares ensure_packages(, { ensure => 'present' }) and ensure_packages(, { ensure => 'installed' }) concurrently, funcion fails at different 'ensure' values. This change causes function to change 'installed' to 'present', avoiding this error.
Maybe similar treatment is needed when arguments[0] is a hash, but I'm an absolute beginner in Ruby.