From a3c53eebef0ad4f4ea427e753df45ffcd8ceda84 Mon Sep 17 00:00:00 2001 From: Eric Gable Date: Fri, 6 Sep 2013 14:48:15 -0700 Subject: [PATCH] Supress expected error in TryLoadAtapiix() by setting chk_err=False for lsmod --- waagent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waagent b/waagent index c381347..ece7038 100644 --- a/waagent +++ b/waagent @@ -3365,7 +3365,7 @@ class Agent(Util): modloaded=False retcode,krn=RunGetOutput('uname -r') krn_pth='/lib/modules/'+krn.strip('\n')+'/kernel/drivers/ata/ata_piix.ko' - if Run('lsmod | grep ata_piix') == 0 : + if Run("lsmod | grep ata_piix",chk_err=False) == 0 : Log("Module " + krn_pth + " driver for ATAPI CD-ROM is already present.") return 0 if retcode: