git://git.onelab.eu
/
nodemanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Stupidest bug in history.
[nodemanager.git]
/
vsys.py
diff --git
a/vsys.py
b/vsys.py
index
a429760
..
a2a6b9f
100644
(file)
--- a/
vsys.py
+++ b/
vsys.py
@@
-61,7
+61,7
@@
def touchAcls():
for (root, dirs, files) in os.walk(VSYSBKEND):
for file in files:
if file.endswith(".acl"):
for (root, dirs, files) in os.walk(VSYSBKEND):
for file in files:
if file.endswith(".acl"):
- acls.append(file.r
strip(".acl
"))
+ acls.append(file.r
eplace(".acl", "
"))
else:
scripts.append(file)
for new in (Set(scripts) - Set(acls)):
else:
scripts.append(file)
for new in (Set(scripts) - Set(acls)):
@@
-101,7
+101,7
@@
def parseAcls():
for file in files:
if file.endswith(".acl"):
f = open(root+"/"+file,"r+")
for file in files:
if file.endswith(".acl"):
f = open(root+"/"+file,"r+")
- scriptname = file.r
strip(".acl
")
+ scriptname = file.r
eplace(".acl", "
")
scriptacls[scriptname] = []
for slice in f.readlines():
scriptacls[scriptname].append(slice.rstrip())
scriptacls[scriptname] = []
for slice in f.readlines():
scriptacls[scriptname].append(slice.rstrip())