'Helper method for logging kernel information into the status logs.
Intended for cases where the "current" kernel is not really defined
and we want to explicitly log it. Does nothing if this host isn\'t
actually associated with a job.'

def log_kernel(self):

    if self.job:
        kernel = self.get_kernel_ver()
        self.job.record('INFO', None, None, optional_fields={'kernel': kernel})
