[chef] HWRP Array attribute not reset


Chronological Thread 
  • From: "Stewart, Curtis" < >
  • To: " " < >
  • Subject: [chef] HWRP Array attribute not reset
  • Date: Tue, 11 Mar 2014 22:19:13 +0000
  • Accept-language: en-US

I’m working with a custom HWRP, and I have an attribute of type Array. 

The definition is below, and the issue I’m trying to trouble shoot is that if I update the value of my array, instead of resetting the array, they new values are appended to the array.


    def external_addresses(arg = nil)
      set_or_return(:external_addresses, arg, :kind_of => Array)
    end


Thanks for any feedback,
Curtis



Archive powered by MHonArc 2.6.16.

§