gocd / go-cookbook

Cookbook that installs and configures the open-source ThoughtWorks Studios GoCD product
http://www.gocd.org/
Apache License 2.0
44 stars 66 forks source link

Chef 13 Syntax Change in agent resource #79

Closed kemra102 closed 8 years ago

kemra102 commented 8 years ago

When running this cookbook you get a deprecation warning:

Deprecated features used!
==> server:   Cannot specify both default and name_property together on property agent_name of resource gocd_agent. Only one (name_property) will be obeyed. In Chef 13, this will become an error. Please remove one or the other from the property. at 1 location:
==> server:     - /var/chef/cache/cookbooks/gocd/resources/agent.rb:8:in `class_from_file'

This pull fixes the issue described so it won't error out in Chef 13.