Skip to content

Syntax-error in recipe.rb? #12

@twissmueller

Description

@twissmueller

During a chef-solo run I get the below error output, this is just an excerpt, you can find the full output here.

Any idea what causes this? Am new to chef and cannot tell in how far it is a problem with my code. Also dont't find much while googling for this.

Any hints are highly appreciated!

Recipe Compile Error in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/discovery/libraries/recipe.rb

================================================================================


SyntaxError

-----------

/tmp/vagrant-chef-1/chef-solo-1/cookbooks/discovery/libraries/recipe.rb:5: syntax error, unexpected '=', expecting '|'
      define_method("discovery_#{dsl_method}") do |role='', args={}|
                                                        ^
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/discovery/libraries/recipe.rb:15: syntax error, unexpected kEND, expecting $end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions