- From: Steven Danna <
>
- To: <
>
- Subject: [chef] Re: Using Role attributes inside bash resource
- Date: Thu, 6 Jun 2013 06:36:02 -0700
Hi,
On 6/5/13 5:25 AM, Yonah Russ wrote:
>
When a recipe tries to use one of the role attributes inside the code, I
>
get an error:
>
/tmp/chef-script20130605-45783-1h9fd78: line 6:
>
Chef::Node::Attribute:0x0000000628e1b8: No such file or directory
Could you post the bash resource that is causing this problem?
>
>
Is this a known issue?
>
Am I doing something wrong?
Errors such as this is one of the reasons that Dan reworked much of the
attribute code for Chef 11 [0]. The typical solution is to coerce the
attribute into a well-known type using #to_s, #to_hash, or similar
methods which are easier to use elsewhere.
Cheers,
Steven
--
Steven Danna
Systems Engineer, Opscode, Inc
GPG Key:
http://stevendanna.github.com/downloads/code/public.key
[0]
http://www.opscode.com/blog/2013/02/05/chef-11-in-depth-attributes-changes/
Attachment:
signature.asc
Description: OpenPGP digital signature
Archive powered by MHonArc 2.6.16.