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.13.1 db/seeds.d/150-module_job_templates.rb
katello-4.13.0 db/seeds.d/150-module_job_templates.rb
katello-4.12.1 db/seeds.d/150-module_job_templates.rb
katello-4.13.0.rc1 db/seeds.d/150-module_job_templates.rb
katello-4.12.0 db/seeds.d/150-module_job_templates.rb
katello-4.12.0.rc3 db/seeds.d/150-module_job_templates.rb
katello-4.12.0.rc2 db/seeds.d/150-module_job_templates.rb
katello-4.12.0.rc1 db/seeds.d/150-module_job_templates.rb
katello-4.11.1 db/seeds.d/150-module_job_templates.rb
katello-4.11.0 db/seeds.d/150-module_job_templates.rb
katello-4.11.0.rc2 db/seeds.d/150-module_job_templates.rb
katello-4.11.0.rc1 db/seeds.d/150-module_job_templates.rb
katello-4.10.0 db/seeds.d/150-module_job_templates.rb
katello-4.9.2 db/seeds.d/150-module_job_templates.rb
katello-4.10.0.rc2 db/seeds.d/150-module_job_templates.rb
katello-4.10.0.rc1 db/seeds.d/150-module_job_templates.rb
katello-4.8.4 db/seeds.d/150-module_job_templates.rb
katello-4.9.1 db/seeds.d/150-module_job_templates.rb
katello-4.8.3 db/seeds.d/150-module_job_templates.rb
katello-4.9.0 db/seeds.d/150-module_job_templates.rb