puppetlabs / puppetlabs/puppetlabs-stdlib

Just upgraded from 9.4.1 to 9.6.0 - file_line is no longer supported

Open
#1,438 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
349
Forks
573
Avg merge
3d 3h
Merged PRs (30d)
1

Description

Describe the Bug

After upgrading to 9.6.0 we are geting the error:
ESC[1;31mError: Evaluation Error: Error while evaluating a Resource Statement, Unknown resource type: 'file_line' (file: /work/code/puppet/module/manifests/puppet_cron_client.pp, line: 597, column: 7) on node pentest-cloudexporter.ap-southeast-2.compute.internalESC[0m

Expected Behavior

We didn't get this error with 9.4.1

Steps to Reproduce

Steps to reproduce the behavior:

  1. Write some puppet code using the resource file_line
  2. apply the code

Environment

  • Version 7.33.0
  • Platform: Ubuntu 22.04
# uname -a
Linux pentest-cloudexporter 6.5.0-1024-aws #24~22.04.1-Ubuntu SMP Thu Jul 18 10:43:12 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Additional Context

Add any other context about the problem here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported file_line resource failure with the versions and Ubuntu 22.04 environment in the issue, then inspect how this repository exposes resource types. Compare behavior between 9.4.1 and 9.6.0; done means establishing why file_line became unavailable and documenting or restoring the expected behavior.

Written by the indexing model from the issue text.

Assessment

Domain
devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.