Skip to content

Issue with the onlyif parameter not being recognized. #367

@fr3nch13

Description

@fr3nch13

Describe the Bug

Possible bug when being used with puppetlabs/docker

puppetlabs/puppetlabs-docker#987

Specifically with the file: manifests/service.pp#506

Error:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: no parameter named 'onlyif' (file: /etc/puppetlabs/code/environments/brian_test/modules/docker/manifests/service.pp, line: 506) on Reboot[pending_reboot] (file: /etc/puppetlabs/code/environments/brian_test/modules/docker/manifests/service.pp, line: 506) on node

My module that uses puppetlabs/docker (which uses puppetlabs/reboot) is passing unit testing with 100% code coverage, but actual testing (canary testing, thanks CrowdStrike for the name) is failing with the above error.

Expected Behavior

To accept the onlyif parameter

Steps to Reproduce

Steps to reproduce the behavior:

  1. Use the puppetlabs/docker module on Windows 2019
  2. Deploy the module on a fresh install where the docker module manages everything.
  3. Confirm that the windows.rb from this module is being deployed to the host, along with manifests/service.pp which uses the reboot provider.

Environment

  • Windows 2019 server
  • Puppet server and agent 7.31.0
  • mod 'puppetlabs/docker', :latest (10.0.1)
  • mod 'puppetlabs/pwshlib', :latest (1.1.1)
  • mod 'puppetlabs/reboot', :latest (5.0.0)
  • mod 'puppetlabs/registry', :latest (5.0.1)

Additional Context

Add any other context about the problem here.

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