From 361fa95b9da5e6f870343d0c081e1a03627ff4a5 Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Tue, 5 Nov 2013 13:27:54 +0100 Subject: [PATCH] =?UTF-8?q?[dhcpd=5Fnew]=20Retrait=20d'une=20d=C3=A9pendan?= =?UTF-8?q?ce=20inutile=20=C3=A0=20ldap=5Fcrans?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gestion/gen_confs/dhcpd_new.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gestion/gen_confs/dhcpd_new.py b/gestion/gen_confs/dhcpd_new.py index bc2327af..9c24f367 100644 --- a/gestion/gen_confs/dhcpd_new.py +++ b/gestion/gen_confs/dhcpd_new.py @@ -9,13 +9,15 @@ Licence : GPLv2 import os from iptools import AddrInNet from gen_confs import gen_config -from ldap_crans import hostname +from socket import gethostname from config import NETs from pypureomapi import pack_ip, pack_mac, OMAPI_OP_UPDATE from pypureomapi import Omapi, OmapiMessage, OmapiError, OmapiErrorNotFound import struct +hostname = gethostname().split(".")[0] + class dydhcp: def __init__(self, server): import sys