- From: Noah Kantrowitz <
>
- To:
- Subject: [chef] Re: HWRP Array attribute not reset
- Date: Tue, 11 Mar 2014 15:20:46 -0700
Can you give an example of how you are using it?
--Noah
On Mar 11, 2014, at 3:19 PM, "Stewart, Curtis"
<
>
wrote:
>
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
Attachment:
signature.asc
Description: Message signed with OpenPGP using GPGMail
Archive powered by MHonArc 2.6.16.