Skip to content

Commit 8c71f86

Browse files
authored
Merge pull request #342 from kenyon/fix-URI.open-syntax
templates/facts.rb.erb: update URI.open syntax to fix deprecation warnings
2 parents dc8adc1 + db2c619 commit 8c71f86

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

templates/facts.rb.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
# Purpose: Return facts for the running version of jira.
1212
#
1313
require 'json'
14-
require 'open-uri'
14+
require 'uri'
1515
begin
1616
url = 'http://<%= @uri %>:<%= @port %><%= @contextpath %>/rest/api/2/serverInfo'
17-
info = open(url, &:read)
17+
info = URI.open(url).read
1818
rescue
1919
exit 0
2020
end

0 commit comments

Comments
 (0)