Skip to content

Optional[Integer[-1]] $pool_max_wait breaks with latest puppet agent (7.29 or 8.5) #418

@KoenDierckx

Description

@KoenDierckx

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 7.29
  • Ruby: all
  • Distribution: all
  • Module version: all (up to 6.0.0)

How to reproduce (e.g Puppet code you use)

Upgrade puppet agent to the latest version (7.29 or 8.5)
and use this module

What are you seeing

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, The parameter '$pool_max_wait' must be a literal type, not a Puppet::Pops::Model::AccessExpression (file: /etc/puppetlabs/code/environments/production/external-modules/jira/manifests/init.pp, line: 333, column: 25) (file: /etc/puppetlabs/code/environments/production/manifests/site.pp, line: 3076) on node XXXX

What behaviour did you expect instead

successfull puppet run

Any additional information you'd like to impart

This is the offending line

Optional[Integer[-1]] $pool_max_wait = undef,

It is caused by a "bug" inside of puppet
puppetlabs/puppet#9268

The current Integer min/max setting of -1 for pool_max_wait does not seem very useful anyhow, so perhaps better to remove the -1, and replace it with 0 like the other parameters

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