diff options
Diffstat (limited to 'lib/custodian/protocoltest/smtprelay.rb')
-rw-r--r-- | lib/custodian/protocoltest/smtprelay.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/custodian/protocoltest/smtprelay.rb b/lib/custodian/protocoltest/smtprelay.rb index 7cf22cc..85f7896 100644 --- a/lib/custodian/protocoltest/smtprelay.rb +++ b/lib/custodian/protocoltest/smtprelay.rb @@ -63,7 +63,7 @@ module Custodian def get_hostname hostname = "localhost.localdomain" - if ( File.exists?( "/etc/hostname" ) ) + if ( File.exist?( "/etc/hostname" ) ) File.readlines("/etc/hostname" ).each do |line| hostname = line if ( !line.nil? ) hostname.chomp! |