Skip to content

Chef not reading parameters hash #196

Description

@gangadhar01a

🗣️ Foreword

Thank for taking the time to fill this bug report fully. Without it we may not be able to fix the bug, and the issue may be closed without resolution.

👻 Brief Description

I have declared parameters as hash as shown below, after the chef ran these parameters are not reflected in the varnish config.

  parameters = { 'thread_pool_min' => '5',
     'thread_pool_max' => '5000',
     'thread_pool_timeout' => '300' }

Tried the following definition which updated the varnish config but chef lint resulted in an error

  parameters ({ 'thread_pool_min' => '5',
     'thread_pool_max' => '5000',
     'thread_pool_timeout' => '300' })

Lint error:

recipes/varnishinstall.rb:22:13: W: Lint/ParenthesesAsGroupedExpression: (...) interpreted as grouped expression.
  parameters ({
            ^

🥞 Cookbook version 4.0.1

Version of the cookbook where you are encountering the issue.

👩‍🍳 Chef-Infra Version 14

Version of chef-client in your environment.

🎩 Platform details

OS: centos 7
Operating system distribution and release version. Cloud provider if running in the cloud.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Waiting on ContributorAwaiting on the person who raised this to update

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions