- From:
- To: chef <
>
- Subject: [chef] Re: chef_env getting set incorrectly in node attr data
- Date: Thu, 26 Jan 2012 16:19:48 -0800
On Thu, 26 Jan 2012,
wrote:
>
>
hi. i'm trying to figure out how the chef_environment is being set
>
incorrectly on some of my nodes, and could use advice on how to rummage
>
around to find the culprit.
found it! i was mistakenly using an assignment operator rather than a
check value operator.
wrong:
if node[:chef_environment] = /dev/
aws_creds = Chef::EncryptedDataBagItem.load("hush","bag-dev")
right:
if node[:chef_environment] == /dev/
just enough ruby to be dangerous! thanks for playing :>
kallen
Archive powered by MHonArc 2.6.16.