[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] Use `socket.getfqdn()`



Reference: https://github.com/Debian/dak/pull/3
---
 daklib/config.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/daklib/config.py b/daklib/config.py
index a6a7951..eac5bfa 100644
--- a/daklib/config.py
+++ b/daklib/config.py
@@ -72,8 +72,8 @@ class Config(object):
 
         # Check whether our dak.conf was the real one or
         # just a pointer to our main one
-        res = socket.gethostbyaddr(socket.gethostname())
-        conffile = self.Cnf.get("Config::" + res[0] + "::DakConfig")
+        fqdn = socket.getfqdn()
+        conffile = self.Cnf.get("Config::" + fqdn + "::DakConfig")
         if conffile:
             apt_pkg.read_config_file_isc(self.Cnf, conffile)
 
-- 
2.1.4


Reply to: