lib/ohai/mixin/do_metadata.rb in ohai-16.6.5 vs lib/ohai/mixin/do_metadata.rb in ohai-16.7.18

- old
+ new

@@ -1,5 +1,6 @@ +# frozen_string_literal: true # Author:: Dylan Page (<dpage@digitalocean.com>) # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -18,11 +19,11 @@ module Ohai module Mixin module DOMetadata - DO_METADATA_ADDR ||= "169.254.169.254".freeze - DO_METADATA_URL ||= "/metadata/v1.json".freeze + DO_METADATA_ADDR ||= "169.254.169.254" + DO_METADATA_URL ||= "/metadata/v1.json" def http_client Net::HTTP.start(DO_METADATA_ADDR).tap { |h| h.read_timeout = 6 } end