Beispiel #1
0
 def __init__(self):
     JanitorPlugin.__init__(self)
     try:
         self.current_kernel_version = self.p_kernel_version.findall('-'.join(os.uname()[2].split('-')[:2]))[0]
         log.debug("the current_kernel_version is %s" % self.current_kernel_version)
     except Exception, e:
         log.error(e)
         self.current_kernel_version = '3.2.0-36'
 def __init__(self):
     JanitorPlugin.__init__(self)
     self.current_kernel_version = '-'.join(os.uname()[2].split('-')[:2])
     log.debug("the current_kernel_version is %s" % self.current_kernel_version)
Beispiel #3
0
 def __init__(self):
     JanitorPlugin.__init__(self)
     self.current_kernel_version = '-'.join(os.uname()[2].split('-')[:2])
     log.debug("the current_kernel_version is %s" %
               self.current_kernel_version)