auser / poolparty

Run a self-healing, auto-scaled and monitored cloud simply, in the clouds, on nearly any hardware, such as EC2, eucalyptus and vmware
http://www.poolpartyrb.com
MIT License
371 stars 54 forks source link

Attributes always getting converted to strings #43

Closed jcn closed 15 years ago

jcn commented 15 years ago

Regarding the following lines of code, it looks like when building the attributes files for individual recipes, the proxy object is always just returning a string, regardless of what the variable actually is. This causes problems with variables like arrays, which get converted with the .to_s call in the proxy object and then just get rendered out as strings. If a variable is set as a string it should come back from the proxy object as a string and then get rendered out by handle_print_variable as appropriate.

http://github.com/auser/poolparty/blob/3e0d671b731414137d80cac989989f5f8182ca89/lib/dependency_resolvers/chef.rb#L164 http://github.com/auser/poolparty/blob/3e0d671b731414137d80cac989989f5f8182ca89/lib/dependency_resolvers/proxy_object.rb#L35