add missing require
authorTom Clegg <tom@clinicalfuture.com>
Mon, 14 Jan 2013 22:54:24 +0000 (14:54 -0800)
committerTom Clegg <tom@clinicalfuture.com>
Mon, 14 Jan 2013 22:54:24 +0000 (14:54 -0800)
config/environments/production.rb
config/environments/test.rb

index 7069e2bb009b7396946ffdbd28264610abe18573..4d47ba42070fa177cf869c2c68e9579585989acc 100644 (file)
@@ -63,6 +63,7 @@ Server::Application.configure do
   # config.compute_node_domain = `hostname --domain`.strip
 
   # config.compute_node_nameservers = ['1.2.3.4', '1.2.3.5']
+  require 'net/http'
   config.compute_node_nameservers = ['local', 'public'].collect do |iface|
     Net::HTTP.get(URI("http://169.254.169.254/latest/meta-data/#{iface}-ipv4")).match(/^[\d\.]+$/)[0]
   end << '172.16.0.23'
index 8adf0e68089b375083dfeb283fcfd9499e175f20..3b1ca5c6fddb60968a4ea331e23b4b063a230371 100644 (file)
@@ -42,6 +42,7 @@ Server::Application.configure do
   # config.compute_node_domain = `hostname --domain`.strip
 
   # config.compute_node_nameservers = ['1.2.3.4', '1.2.3.5']
+  require 'net/http'
   config.compute_node_nameservers = ['local', 'public'].collect do |iface|
     Net::HTTP.get(URI("http://169.254.169.254/latest/meta-data/#{iface}-ipv4")).match(/^[\d\.]+$/)[0]
   end << '172.16.0.23'