From 7055247931ac4db478e6e99d6d61b872f0c8fd09 Mon Sep 17 00:00:00 2001 From: bernat Date: Wed, 5 Oct 2005 14:18:20 +0200 Subject: [PATCH] grep renvoie une erreur quand aucune ligne ne matche darcs-hash:20051005121820-d1718-51fcf18045d5c3c28b1735505247f826803fbe85.gz --- wiki/macro/HostStatus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wiki/macro/HostStatus.py b/wiki/macro/HostStatus.py index cb16e93c..548e665f 100644 --- a/wiki/macro/HostStatus.py +++ b/wiki/macro/HostStatus.py @@ -19,7 +19,7 @@ def execute(macro, text) : status = getstatusoutput('grep -v " 0 " /etc/autostatus/local.status') - if status[0] : + if status[0] and status[0] != 256 : return Cellule('Impossible d\'analyser le fichier de status.','yellow',macro.formatter) if not status[1].strip() :