[chef] data_bag_item() returns a plain Hash?


Chronological Thread 
  • From: "Mark J. Reed" < >
  • To:
  • Subject: [chef] data_bag_item() returns a plain Hash?
  • Date: Wed, 22 Dec 2010 15:36:13 -0500
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=lPXAgJDURkvu5RsfqaaLiiJ30c0mM2cPsHlbTSRJvVvj4DpOYOBUNJSkmZOvWXMuyr XSKNN+E2cEDOVKdztvm/Jpr94gDtXNpRbVFLbz9826Zv+yznJKE7WGOT72DREJ0s0bS2 e/k0foOdNyoKG4YQBJBF6BtcDs1P32Y4dGtok=

Shouldn't it return a Chef::DataBagItem?  I just spent way too long tracking down a recipe bug where an attribute wasn't found because I was trying to index into the Hash version with a Symbol, when all the Hash keys are actually Strings.  Either one works for DataBagItems (which are descended from Mash).




Archive powered by MHonArc 2.6.16.

§