Closed vranystepan closed 7 years ago
Or something like this:
def safe_dup(e)
e.dup
rescue TypeError
e
end
I can see such method here but I don't know whether we can use it ...
@ricardogpsf or @tmiotto , do either of you have some time to look into fixing this?
Scenario/Intent
Chef client version 13.2.20 raises following error:
Environment Details
Steps to Reproduce
Upgrade chef-client to the latest version and try to use arbitrary resource. It happens only when you have for example
default['oneview']['save_resource_info'] = ['uri', 'status', 'created']
specified in you attributes file. Withtrue
andfalse
everything works fine.Fix / Workaround
I was able to eliminate this behaviour with following edit in OneviewCookbook::ResourceBaseProperties.load:
However
TrueClass
orFalseClass
can't be dup-ed so there must be some condition i.e.