From eac6de26675938556865d90bd834c96334c396bd Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Thu, 29 Nov 2012 21:21:47 +0000 Subject: Add a checkenabled() to jboss module The jboss module's postproc() method assumes the module is enabled and throws exceptions if __jbosshome is unset. Add a checkenabled() method to prevent the module running when this path cannot be found. --- sos/plugins/jboss.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sos/plugins/jboss.py b/sos/plugins/jboss.py index cffaf043..de1a9765 100644 --- a/sos/plugins/jboss.py +++ b/sos/plugins/jboss.py @@ -641,6 +641,11 @@ Default=\'all default minimal production standard web\'.', '', False), self.addCopySpec(file) return + def checkenabled(self): + if not self.__getJbossHome(): + return False + return True + def setup(self): ## We need to know where JBoss is installed and if we can't find it we -- cgit