Project

General

Profile

Actions

Bug #35886

closed

Allow installed_debs method

Added by Maxim Petukhov over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
trivial
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

I need to use installed_debs method in my Job template to search a installed packages in Debian/Ubuntu hosts. Like that https://github.com/maccelf/foreman_kernel_care/blob/552a493012762938db3c29f1cbfd5643900e8a0c/app/views/foreman_kernel_care/job_templates/kernel_version.erb#L11
So to do it i need to allow installed_debs method in class ::Host::Managed::Jail

class ::Host::Managed::Jail < Safemode::Jail
  allow :installed_debs

Actions

Also available in: Atom PDF