Sha256: b3bb2cb570308cd86b57e448582ca05d4dcd51650fd37ec29795ff2fa9115157
Contents?: true
Size: 1008 Bytes
Versions: 177
Compression:
Stored size: 1008 Bytes
Contents
module Actions module Katello module Product class RepositoriesCertsReset < Actions::AbstractAsyncTask def plan(product) ssl_ca_cert_id = product.ssl_ca_cert_id ssl_client_cert_id = product.ssl_client_cert_id ssl_client_key_id = product.ssl_client_key_id # Plan Repository::Update only for repositories which have different certs key product.repositories.each do |repo| if (repo.root.ssl_ca_cert_id != ssl_ca_cert_id || repo.root.ssl_client_cert_id != ssl_client_cert_id || repo.root.ssl_client_key_id != ssl_client_key_id) plan_action(::Actions::Katello::Repository::Update, repo.root, :ssl_ca_cert_id => ssl_ca_cert_id, :ssl_client_cert_id => ssl_client_cert_id, :ssl_client_key_id => ssl_client_key_id) end end end end end end end
Version data entries
177 entries across 177 versions & 1 rubygems