Project

General

Profile

Actions

Bug #15871

closed

Migration fails when standard roles are deleted

Added by Lukas Zapletal over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Category:
Discovery plugin
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When they are missing, getting:

undefined method `add_permissions!' for nil:NilClass
/home/lzap/work/foreman_discovery/db/migrate/20160719124942_add_missing_view_permissions.rb:9:in `up'
/home/lzap/.rbenv/versions/2.3.1/bin/bundle:23:in `load'
/home/lzap/.rbenv/versions/2.3.1/bin/bundle:23:in `<main>'
NoMethodError: undefined method `add_permissions!' for nil:NilClass
/home/lzap/work/foreman_discovery/db/migrate/20160719124942_add_missing_view_permissions.rb:9:in `up'
/home/lzap/.rbenv/versions/2.3.1/bin/bundle:23:in `load'
/home/lzap/.rbenv/versions/2.3.1/bin/bundle:23:in `<main>'
Tasks: TOP => db:migrate
Actions #1

Updated by The Foreman Bot over 7 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Lukas Zapletal
  • Pull request https://github.com/theforeman/foreman_discovery/pull/290 added
Actions #2

Updated by Anonymous over 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF