Project

General

Profile

« Previous | Next » 

Revision 134282df

Added by Tom Caspy about 8 years ago

fixes #12669 - making sure that code which requires a new attribute doesn't break migrations

the lookup_value_matcher attribute code adds a callback which expects
the attribute to exist, but when upgrading foreman, this can be a bit of
an issue, when db:migrate touches existing hosts/hostgroups, and the
attribute hasn't been added yet. Bottom line - adding a simple (cached)
check for the attribute's existence, which solves this issue.

(cherry picked from commit abcde12e327c72318e0693ba7561b38fa784d7dd)

  • added
  • modified
  • copied
  • renamed
  • deleted