- From: Vincent Jorgensen <
>
- To: "
" <
>
- Subject: [chef] Where id node[:ec2][:instance_id] go?
- Date: Fri, 18 Jan 2013 00:27:10 +0000
- Accept-language: en-US
Once upon a time I had a script that did the following:
$!/bin/bash
knife exec -E "search(:node, 'name:$1) { |h| puts h[:ec2][:instance_id] } "
and it worked, that it, it returned the EC2 instance ID of the node in $1.
I hadn't used the script in a while, and when I when to use it today,
instance_id was gone. Further investigation revealed that it isn't in the
node at all (knife node edit nodename -a, then search for nstance_d, ec2, or
i-* all turned up nil).
Did it go away in the latest iteration of chef? If so, why? And is there a
way I can get it back?
Thanks!
--------------------------------
Vincent Jorgensen
- [chef] Where id node[:ec2][:instance_id] go?, Vincent Jorgensen, 01/17/2013
Archive powered by MHonArc 2.6.16.