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

shell escape Puppet command options #40

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Jan 8, 2024

No description provided.

@ekohl ekohl added the bug Something isn't working label Jan 8, 2024
@@ -37,6 +37,13 @@ def logger
dsl.install_puppet_module_via_pmt_on(host, 'test', '1.2.3')
end

it 'escapes the version parameter' do
expect(Beaker::PuppetCommand).to receive(:new).with('module', %w[install test], { version: '\\>\\=\\ 4.0\\ \\<\\ 6.0' }).once
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yey escaping

@bastelfreak bastelfreak merged commit 9b9d6ce into voxpupuli:master Jan 8, 2024
6 checks passed
@ekohl ekohl deleted the escape-puppet-command-options branch January 8, 2024 21:16
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

Successfully merging this pull request may close these issues.

2 participants