Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List of unsafe processes not generated correctly #86

Open
rkahl opened this issue Mar 16, 2023 · 0 comments
Open

List of unsafe processes not generated correctly #86

rkahl opened this issue Mar 16, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@rkahl
Copy link

rkahl commented Mar 16, 2023

Describe the Bug

The list of unsafe processes is not being generated in a way the facter expects it. The processes are concatenated by \n instead of a newline character.

Expected Behavior

The file "patching_unsafe_processes" should list the process names line by line.

Steps to Reproduce

Just add multiple unsafe processes, e.g. in Hiera:
patching_as_code::unsafe_process_list:

  • proc1
  • proc2
  • proc3

Environment

patching_as_code 1.1.7

Additional Context

The \n must be enclosed in double quotes instead of single quotes to be interpreted as newline. The affected line in init.pp should read:
content => $unsafe_process_list.join("\n"),

@rkahl rkahl added the bug Something isn't working label Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant