Project

General

Profile

Actions

Bug #27936

closed

Updating policy to Ansible without ansible role should not break page

Added by Marek Hulán over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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:

Actions #1

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
Actions #2

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases foreman_openscap 2.0.0 added
Actions #3

Updated by Ondřej Pražák over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF