Bug #27936
closedUpdating policy to Ansible without ansible role should not break page
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1754424
Description of problem:
Version-Release number of selected component (if applicable):
Satellite 6.6
How reproducible:
Always
Steps to Reproduce:
1. Scap Ansible role is not imported into satellite
2. Try to update existing puppet policy
Actual results:
ActiveRecord::AssociationTypeMismatch
AnsibleRole(#66352280) expected, got nil which is an instance of NilClass(#9657900)
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/associations/association.rb:238:in `raise_on_type_mismatch!'
/opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/associations/has_many_through_association.rb:17:in `block in concat'
Expected results:
Unable to save
Required Ansible role theforeman.foreman_scap_client was not found, please ensure it is imported first
Additional info:
Updated by The Foreman Bot over 4 years ago
- Status changed from New to Ready For Testing
- Assignee set to Ondřej Pražák
- Pull request https://github.com/theforeman/foreman_openscap/pull/419 added
Updated by The Foreman Bot over 4 years ago
- Fixed in Releases foreman_openscap 2.0.0 added
Updated by Ondřej Pražák over 4 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_openscap|4e3df8fe3948f31a527157dcfe0c125d379f76d3.