Skip to content

Commit ea43c67

Browse files
committed
Fix Kernel#open warning downloading repo tarball
``` lib/manageiq/cross_repo/repository.rb:151: warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open ```
1 parent f7e7fd4 commit ea43c67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/manageiq/cross_repo/repository.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def tarball_url
148148
end
149149

150150
def open_tarball_url(url)
151-
archive = open(tarball_url, "rb")
151+
archive = URI.open(tarball_url, "rb")
152152

153153
if archive.kind_of?(StringIO)
154154
archive = Tempfile.new('cross_repo').tap do |f|

0 commit comments

Comments
 (0)