Project

General

Profile

Bug #28295

Cleaning orphaned facts fails with undefined method map

Added by Lukas Zapletal 8 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Category:
Facts
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

In some cases, select! returns nil.

Starting orphaned facts clean up
rake aborted!
NoMethodError: undefined method `map' for nil:NilClass
/usr/share/foreman/app/services/fact_cleaner.rb:54:in `block in delete_excluded_facts'

Related issues

Related to Foreman - Feature #25227: Foreman-rake facts:cleanup batch/rolling supportClosed

Associated revisions

Revision 3e197ede (diff)
Added by Lukas Zapletal 8 months ago

Fixes #28295 - fact cleaner map error fixed

History

#1 Updated by The Foreman Bot 8 months ago

  • Assignee set to Lukas Zapletal
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/7185 added

#2 Updated by Tomer Brisker 8 months ago

  • Target version set to 1.24.0

#3 Updated by The Foreman Bot 8 months ago

  • Fixed in Releases 2.0.0 added

#4 Updated by Tomer Brisker 8 months ago

  • Fixed in Releases 1.24.0 added
  • Fixed in Releases deleted (2.0.0)

#5 Updated by Lukas Zapletal 8 months ago

  • Status changed from Ready For Testing to Closed

#6 Updated by Tomer Brisker 7 months ago

  • Bugzilla link set to 1781340

#7 Updated by Tomer Brisker 7 months ago

  • Related to Feature #25227: Foreman-rake facts:cleanup batch/rolling support added

Also available in: Atom PDF