Skip to content

Commit

Permalink
ruby1.9 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
zippolyte committed Jan 30, 2020
1 parent af30b74 commit f759fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dogapi/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def Dogapi.find_datadog_host

def Dogapi.find_localhost
unless @@hostname
out, status = Open3.capture2('hostname', '-f', :err => File::NULL)
out, status = Open3.capture2('hostname', '-f', err: File::NULL)
@@hostname = out.strip
# Get status to check if the call was successful
raise SystemCallError, 'Could not get hostname with `hostname -f`' unless status.exitstatus.zero?
Expand Down

0 comments on commit f759fc3

Please sign in to comment.