Sha256: a513cb030ee40c1cde3537f28042b95b7ae347a56f60fcb2f082edb3bf7da5fb

Contents?: true

Size: 507 Bytes

Versions: 46

Compression:

Stored size: 507 Bytes

Contents

if Katello.with_remote_execution?
  User.as_anonymous_admin do
    JobTemplate.without_auditing do
      module_template = JobTemplate.find_by(name: 'Module Action - Script 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

46 entries across 46 versions & 1 rubygems

Version Path
katello-4.7.6 db/seeds.d/150-module_job_templates.rb
katello-4.8.2 db/seeds.d/150-module_job_templates.rb
katello-4.9.0.rc2 db/seeds.d/150-module_job_templates.rb
katello-4.9.0.rc1 db/seeds.d/150-module_job_templates.rb
katello-4.8.1 db/seeds.d/150-module_job_templates.rb
katello-4.7.5 db/seeds.d/150-module_job_templates.rb
katello-4.8.0 db/seeds.d/150-module_job_templates.rb
katello-4.8.0.rc2 db/seeds.d/150-module_job_templates.rb
katello-4.7.4 db/seeds.d/150-module_job_templates.rb
katello-4.8.0.rc1 db/seeds.d/150-module_job_templates.rb
katello-4.7.3 db/seeds.d/150-module_job_templates.rb
katello-4.7.2 db/seeds.d/150-module_job_templates.rb
katello-4.7.1 db/seeds.d/150-module_job_templates.rb
katello-4.6.2.1 db/seeds.d/150-module_job_templates.rb
katello-4.6.2 db/seeds.d/150-module_job_templates.rb
katello-4.7.0 db/seeds.d/150-module_job_templates.rb
katello-4.6.1 db/seeds.d/150-module_job_templates.rb
katello-4.7.0.rc2 db/seeds.d/150-module_job_templates.rb
katello-4.7.0.rc1 db/seeds.d/150-module_job_templates.rb
katello-4.5.1 db/seeds.d/150-module_job_templates.rb