Il manquait une paire de parenthses
darcs-hash:20060210215257-d1718-9b8ae964bea7ab218d427f86269e3c8f979fa1ba.gz
This commit is contained in:
parent
28dd455ca0
commit
b50c23cc9f
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ for b in bornes:
|
||||||
# Est-ce un hotspot ?
|
# Est-ce un hotspot ?
|
||||||
hotspot = "<nvram>crans_hotspot=1" in b.info() and 1 or 0
|
hotspot = "<nvram>crans_hotspot=1" in b.info() and 1 or 0
|
||||||
# Est-ce que la borne est up ?
|
# Est-ce que la borne est up ?
|
||||||
if os.system("/usr/local/sbin/fping -q %s || /usr/local/sbin/fping -q %s" % (b.nom(),)*2) == 0:
|
if os.system("/usr/local/sbin/fping -q %s || /usr/local/sbin/fping -q %s" % ((b.nom(),)*2)) == 0:
|
||||||
up = 1
|
up = 1
|
||||||
else:
|
else:
|
||||||
up = 0
|
up = 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue