Skip to content

Commit

Permalink
Don't glob archive URL with curl
Browse files Browse the repository at this point in the history
Allows IPv6 IP addresses to be used wraped in square
brackets.
  • Loading branch information
derekhiggins committed Mar 7, 2018
1 parent e4764b0 commit dcac140
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/puppet/provider/archive/curl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def download(filepath)
resource[:source],
'-o',
filepath,
'-fsSL',
'-fsSLg',
'--max-redirs',
5
]
Expand All @@ -32,7 +32,7 @@ def remote_checksum
params = curl_params(
[
resource[:checksum_url],
'-fsSL',
'-fsSLg',
'--max-redirs',
5
]
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/puppet/provider/archive/curl_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'http://home.lan/example.zip',
'-o',
String,
'-fsSL',
'-fsSLg',
'--max-redirs',
5
]
Expand Down Expand Up @@ -135,7 +135,7 @@
let(:curl_params) do
[
'http://example.com/checksum',
'-fsSL',
'-fsSLg',
'--max-redirs',
5
]
Expand Down

0 comments on commit dcac140

Please sign in to comment.