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

Lack of quoting is breaking custom facts/confines on windows systems #174

Closed
rgardner4012 opened this issue Jun 18, 2024 · 0 comments · Fixed by #175
Closed

Lack of quoting is breaking custom facts/confines on windows systems #174

rgardner4012 opened this issue Jun 18, 2024 · 0 comments · Fixed by #175
Assignees

Comments

@rgardner4012
Copy link
Contributor

#lib/facter/openssh_version.rb
sshd_out = Facter::Core::Execution.execute(%(#{sshd_command} -v 2>&1)) <-- fails
As does:
#/lib/facter/ssh_host_keys.rb
sshd_out = Facter::Core::Execution.execute(%(#{sshd_command} -T)).split("\n")

On windows systems, wrapping #{sshd_command} in doublequotes seems to resolve the issue while still working on linux systems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant