Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #27259 - Fix hostgroup-asset association #568

Merged
merged 1 commit into from
May 14, 2024

Conversation

adamruzicka
Copy link
Contributor

Because of the wrong cardinality, only first asset got removed on hostgroup destroy, leading to orphaned assets being left around.

Because of the wrong cardinality, only first asset got removed on
hostgroup destroy, leading to orphaned assets being left around.
Copy link

@pondrejk pondrejk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack based on automation result from SatelliteQE/robottelo#15031 with multiple policies assigned to hg, after hg gets removed the policy related hammer commands continue to work and records from both foreman_openscap_assets and foreman_openscap_asset_policies get cleared

Copy link
Member

@ofedoren ofedoren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @adamruzicka and @pondrejk !

@ofedoren ofedoren merged commit 4b607c8 into theforeman:master May 14, 2024
24 of 26 checks passed
@adamruzicka adamruzicka deleted the hostgroup-assets branch May 14, 2024 10:47
ofedoren pushed a commit that referenced this pull request May 15, 2024
Because of the wrong cardinality, only first asset got removed on
hostgroup destroy, leading to orphaned assets being left around.

(cherry picked from commit 4b607c8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants