def task_upgrade_kernel(distribution):
 if is_centos_or_rhel(distribution):
  return sequence([yum_install(['kernel-devel', 'kernel']), run_from_args(['sync'])])
 elif is_ubuntu(distribution):
  return sequence([])
 else:
  raise DistributionNotSupported(distribution=distribution)

def task_upgrade_kernel ( distribution ) : if is_centos_or_rhel ( distribution ) : return sequence ( [ yum_install ( [ 'kernel-devel' , 'kernel' ] ) , run_from_args ( [ 'sync' ] ) ] ) elif is_ubuntu ( distribution ) : return sequence ( [ ] ) else : raise DistributionNotSupported ( distribution = distribution )
upgrade kernel .