Bug #17369
Updated by Justin Sherrill over 8 years ago
Reported by a user on 3.2:
<pre>
Action:
Actions::Katello::CapsuleContent::Sync
Input:
{"smart_proxy"=>{"id"=>2, "name"=>"capsule.domain.co.uk"}}
Output:
{}
Exception:
NoMethodError: undefined method `puppet_path' for #<Katello::CapsuleContent:0x000000079e72b0>
Backtrace:
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.2.0/app/models/katello/glue/pulp/repo.rb:244:in `generate_distributors'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.2.0/app/models/katello/glue/pulp/repo.rb:823:in `distributors_match?'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.2.0/app/models/katello/glue/pulp/repo.rb:74:in `block in needs_distributor_updates'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.2.0/app/models/katello/glue/pulp/repo.rb:71:in `select'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.2.0/app/models/katello/glue/pulp/repo.rb:71:in `needs_distributor_updates'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.2.0/app/lib/actions/katello/capsule_content/sync.rb:79:in `repos_needing_updates'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.2.0/app/lib/actions/katello/capsule_content/sync.rb:23:in `plan'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.15/lib/dynflow/action.rb:461:in `block (3 levels) in execute_plan'
</pre>