Les premiers switchs s'appellent batX-0 au lieu de batX
darcs-hash:20050418174021-41617-e54c83abc36848ce110f80d601451b781894e6a6.gz
This commit is contained in:
parent
289c94880e
commit
6e6787e989
2 changed files with 2 additions and 6 deletions
|
@ -511,10 +511,7 @@ def all_switchs(bat=None):
|
|||
dup = map(lambda x: x[0], reverse(b).keys())
|
||||
# dup contient des elements en double
|
||||
for n in list(dict(zip(dup,[None]*len(dup)))):
|
||||
if int(n) == 0:
|
||||
switchs.append("bat%s" % b)
|
||||
else:
|
||||
switchs.append("bat%s-%s" % (b, n))
|
||||
switchs.append("bat%s-%s" % (b, n))
|
||||
switchs.sort()
|
||||
return switchs
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue