forked from rodjek/puppet-lint
    
        
        - 
                Notifications
    You must be signed in to change notification settings 
- Fork 19
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the Bug
When running puppet-lint --fix, the contents of yaml files are replaced with the last manifest file read in.
Expected Behavior
Do not replace any files with another files contents.
Steps to Reproduce
Have a manifest directory with an init.pp and a yaml file, like:
test/manifests/init.pp
test/files/sample.yaml
Contents are not important, but the tests I'm using are:
# Class: test
#
class test {
  $foo = 'bar'
  $baz = 'test'
}
and a yaml file like:
# This is a sample YAML file demonstrating common features
# Key-value pairs (mappings)
name: John Doe
age: 30
isStudent: false
# Lists (sequences)
hobbies:
  - Reading
  - Hiking
  - Coding
# Nested structures
address:
  street: 123 Main St
  city: Anytown
  zipCode: "12345" # String value
After running puppet-lint --fix test, the contents of the yaml file are changed to the same as test/manifests/init.pp.
Environment
- Version 5.1.0
- Platform Rocky 9.5
roock
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working