From 4727dc2279bd2aa3ea405d8c36ed7d1f3eff121c Mon Sep 17 00:00:00 2001 From: Stephen Soltesz Date: Mon, 7 Sep 2009 21:04:11 +0000 Subject: [PATCH] only add 'skipping_baddisk' action when the notice is sent, skip it otherwise. --- monitor/bootman.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/monitor/bootman.py b/monitor/bootman.py index 3ebeafe..3053636 100755 --- a/monitor/bootman.py +++ b/monitor/bootman.py @@ -782,9 +782,11 @@ def restore_basic(sitehist, hostname, config=None, forced_action=None): log=conn.get_dmesg().read() sitehist.sendMessage('baddisk_notice', hostname=hostname, log=log) - #conn.set_nodestate('disabled') + return "skipping_baddisk" + else: + # NOTE: "" does not add a new action record + return "" - return "skipping_baddisk" print "...Downloading bm.log from %s" %hostname log = conn.get_bootmanager_log() -- 2.43.0