lib/ohai/mixin/scaleway_metadata.rb in ohai-16.6.5 vs lib/ohai/mixin/scaleway_metadata.rb in ohai-16.7.18
- old
+ new
@@ -1,5 +1,6 @@
+# frozen_string_literal: true
#
# Author:: Jonathan Amiez (<jonathan.amiez@gmail.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 ScalewayMetadata
- SCALEWAY_METADATA_ADDR ||= "169.254.42.42".freeze
- SCALEWAY_METADATA_URL ||= "/conf?format=json".freeze
+ SCALEWAY_METADATA_ADDR ||= "169.254.42.42"
+ SCALEWAY_METADATA_URL ||= "/conf?format=json"
# @return [Net::HTTP] net/http object without timeout set to 6
def http_client
Net::HTTP.start(SCALEWAY_METADATA_ADDR).tap { |h| h.read_timeout = 6 }
end