[bind] mise en forme de la position des bornes
Ignore-this: 462b62faececcf5b4e275798f8e4a5cf darcs-hash:20130129225709-3a55a-9c18478c18c661ce047c103b3c04ded7c2978464.gz
This commit is contained in:
parent
3ea4274ae4
commit
d69de27ff0
1 changed files with 1 additions and 1 deletions
|
@ -342,7 +342,7 @@ zone "%(NOM_zone)s" {
|
||||||
ligne = "%s\tIN\tA\t%s\n" % ( nom, machine.ip() )
|
ligne = "%s\tIN\tA\t%s\n" % ( nom, machine.ip() )
|
||||||
# Si la machine est une borne wifi, on ajoute la position
|
# Si la machine est une borne wifi, on ajoute la position
|
||||||
if isinstance(machine,ldap_crans.BorneWifi) and machine.position():
|
if isinstance(machine,ldap_crans.BorneWifi) and machine.position():
|
||||||
ligne +="%s\tIN\tTXT\t\"LOC %s,%s\"\n" % (nom,machine.position()[0],machine.position()[1])
|
ligne +="%s\tIN\tTXT\t\"LOC %s,%s \"\n" % (nom,machine.position()[0],machine.position()[1])
|
||||||
# Si la machine à des clefs ssh, on ajoute les champs SSFP correspondant
|
# Si la machine à des clefs ssh, on ajoute les champs SSFP correspondant
|
||||||
for sshkey in machine.sshFingerprint():
|
for sshkey in machine.sshFingerprint():
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue