Add missing 'require "socket"'

Audited files using 'Socket.gethostname' but didn't require "socket"
using the following command:

    ack -L 'require "socket"' $(ack -l 'Socket.gethostname' lib)

Fixes LOGSTASH-1974
This commit is contained in:
Jordan Sissel 2014-03-12 15:48:44 -07:00
parent d30a9e5bfc
commit a4f72686c7
2 changed files with 2 additions and 0 deletions

View file

@ -2,6 +2,7 @@
require "logstash/namespace"
require "logstash/outputs/base"
require "stud/buffer"
require "socket" # for Socket.gethostname
# This output lets you store logs in Elasticsearch and is the most recommended
# output for Logstash. If you plan on using the Kibana web interface, you'll

View file

@ -1,6 +1,7 @@
# encoding: utf-8
require "logstash/outputs/base"
require "logstash/namespace"
require "socket" # for Socket.gethostname
# TODO integrate aws_config in the future
#require "logstash/plugin_mixins/aws_config"