The Ruby change produced the above error I ran into. This PR fixes the error by not attempting to update the frozen string itself.
I'm not sure how to write a test for this with the existing suite since it would require testing against multiple versions of Chef. It looks like it's testing against Chef16 and is failing on poise-python which isn't related to my change
Issues Resolved
No existing issue for this bug that I could find on this repo.
Description
I'm in the process of upgrading to Cinc/Chef 16 and I ran into an error:
In Ruby 2.7 core methods now return a frozen string: https://rubyreferences.github.io/rubychanges/2.7.html#core-methods-returning-frozen-strings
The Ruby change produced the above error I ran into. This PR fixes the error by not attempting to update the frozen string itself.
I'm not sure how to write a test for this with the existing suite since it would require testing against multiple versions of Chef. It looks like it's testing against Chef16 and is failing on poise-python which isn't related to my change
Issues Resolved
No existing issue for this bug that I could find on this repo.
Check List