Sha256: 8d1adb5b8606bb91628f29ffcfba7b8d39ea03bf33e69bddf63b249b9cbf8b3e

Contents?: true

Size: 504 Bytes

Versions: 125

Compression:

Stored size: 504 Bytes

Contents

if Katello.with_remote_execution?
  User.as_anonymous_admin do
    JobTemplate.without_auditing do
      module_template = JobTemplate.find_by(name: 'Module Action - SSH Default')
      if module_template
        module_template.sync_feature('katello_module_stream_action')
        module_template.organizations << Organization.unscoped.all if module_template.organizations.empty?
        module_template.locations << Location.unscoped.all if module_template.locations.empty?
      end
    end
  end
end

Version data entries

125 entries across 125 versions & 1 rubygems

Version Path
katello-3.9.1 db/seeds.d/150-module_job_templates.rb
katello-3.10.0.rc1 db/seeds.d/150-module_job_templates.rb
katello-3.9.0 db/seeds.d/150-module_job_templates.rb
katello-3.9.0.rc2 db/seeds.d/150-module_job_templates.rb
katello-3.9.0.rc1 db/seeds.d/150-module_job_templates.rb