ruby - Chef recipe compile error trying to create a jdbc connection pool -


I'm getting a strange compilation error, which I did not understand. I have seen other examples and I have not found anything wrong in my code, but it will not compile.

Here is the dark red color code:

  glassfish_jdbc_connection_pool 'WebRConnectionPool' domain_name 'staged' password_file password_file Safe false datasourceclassname 'com.mysql.jdbc.jdbc2.optional. MysqlConnectionPoolDataSource 'contains restype' javax.sql.ConnectionPoolDataSource 'isconnectvalidatereq true validationmethod' table 'validationtable' DATABASECHANGELOG 'Ping true description' Webarc connection pool 'property {"user" => "User"} true end echo  

Here is an error:

  c: \ devenv \ src \ chef-repo> Uploading knife cookbook is uploading glassfish glassfish [0.5.28] Fatal: Fatal :: C: /devenv/src/chef-repo/.chef/../ Cooking Books / glassfish / recipes / create_domai n.rb Cookbook file recipes / create_domain.rb is a dark red syntax error: 64: syntax error, unexpected tASSOC, hope '}' FATAL: "user" => "User" FATAL: ^  

Any ideas would be welcome!

You should put it on a line or use parentheses

  Properties {"Users" = & gt; "User"}  

or

  attribute ({"user" => "user"})  
< P> or

  attribute ("user" = & gt; "user")  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -