Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Benjamin Graillot
scripts
Commits
bd4bc8ba
Commit
bd4bc8ba
authored
Jun 11, 2013
by
Valentin Samir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[bind] Artefact sur la zone tv.crans.org
parent
608a39c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
gestion/gen_confs/bind.py
gestion/gen_confs/bind.py
+1
-0
No files found.
gestion/gen_confs/bind.py
View file @
bd4bc8ba
...
...
@@ -246,6 +246,7 @@ zone "%(NOM_zone)s" {
for
line
in
sap
:
[
nom
,
ip
]
=
line
.
split
(
':'
)
nom
=
re
.
sub
(
'TNT([0-9]*) '
,
''
,
nom
)
# on enlève les TNT## des noms
nom
=
nom
.
replace
(
'TNT%2lcn '
,
''
)
# on enlève les TNT## des noms
nom
=
re
.
sub
(
' +([^ ])'
,
'-\g<1>'
,
nom
)
# on remplaces les espaces intérieur par un tiret
nom
=
re
.
sub
(
'[ .():,"
\'
+<>]'
,
''
,
nom
)
# on enlève tous les caractères illégaux
nom
=
nom
.
lower
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment