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

Fix downloading when passwords contain spaces #430

Merged
merged 1 commit into from
Apr 16, 2021

Conversation

alexjfisher
Copy link
Member

This also adds our first acceptance tests to this module.

params += ['--netrc-file', @netrc_file.path]
if resource[:username] =~ %r{\s} || resource[:password] =~ %r{\s}
Puppet.warning('Username or password contains a space. Unable to use netrc file to hide credentials')
account = [resource[:username], resource[:password]].compact.join(':')
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the implementation from before #399

@alexjfisher alexjfisher marked this pull request as draft January 22, 2021 18:49
@alexjfisher alexjfisher force-pushed the issue_429 branch 2 times, most recently from b7423d2 to fb3c803 Compare January 22, 2021 19:03
@alexjfisher alexjfisher added the bug Something isn't working label Jan 22, 2021
@alexjfisher alexjfisher reopened this Jan 22, 2021
This also adds our first acceptance tests to this module.
@alexjfisher alexjfisher marked this pull request as ready for review January 22, 2021 19:18
@alexjfisher
Copy link
Member Author

There's a small chance that this is the fix for the issue reported in #429

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