Minor errors first: warning: 4 lines add whitespace errors. src/app/models/hardware_profile_observer.rb:1: new blank line at EOF. src/app/models/image_observer.rb:1: new blank line at EOF. src/app/util/condormatic.rb:1: new blank line at EOF. src/config/initializers/condor_classads_sync.rb:1: new blank line at EOF.
More troublesome: the call in the initializer kills the ability to run a migration on a new database, as it tries to select from a non-existent table. The solution may be to put this in an after_initializer: http://guides.rubyonrails.org/configuring.html#using-an-after-initializer I bypassed that with a simple comment, then added a provider (fine). However, when I added an account, I got the following error: RuntimeError (Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id): app/util/condormatic.rb:216:in `condormatic_classads_sync' /usr/lib/ruby/gems/1.8/gems/will_paginate-2.3.14/lib/will_paginate/finder.rb:168:in `method_missing' /usr/lib/ruby/gems/1.8/gems/will_paginate-2.3.14/lib/will_paginate/finder.rb:168:in `method_missing' app/util/condormatic.rb:208:in `condormatic_classads_sync' /usr/lib/ruby/gems/1.8/gems/will_paginate-2.3.14/lib/will_paginate/finder.rb:168:in `method_missing' /usr/lib/ruby/gems/1.8/gems/will_paginate-2.3.14/lib/will_paginate/finder.rb:168:in `method_missing' app/util/condormatic.rb:207:in `condormatic_classads_sync' /usr/lib/ruby/gems/1.8/gems/will_paginate-2.3.14/lib/will_paginate/finder.rb:168:in `method_missing' /usr/lib/ruby/gems/1.8/gems/will_paginate-2.3.14/lib/will_paginate/finder.rb:168:in `method_missing' app/util/condormatic.rb:206:in `condormatic_classads_sync' /usr/lib/ruby/gems/1.8/gems/will_paginate-2.3.14/lib/will_paginate/finder.rb:168:in `method_missing' /usr/lib/ruby/gems/1.8/gems/will_paginate-2.3.14/lib/will_paginate/finder.rb:168:in `method_missing' app/util/condormatic.rb:205:in `condormatic_classads_sync' app/util/condormatic.rb:204:in `each' app/util/condormatic.rb:204:in `condormatic_classads_sync' app/models/image_observer.rb:4:in `after_save' /usr/lib/ruby/1.8/observer.rb:185:in `notify_observers' /usr/lib/ruby/1.8/observer.rb:184:in `each' /usr/lib/ruby/1.8/observer.rb:184:in `notify_observers' app/models/cloud_account.rb:114:in `populate_realms_and_images' app/models/cloud_account.rb:101:in `each' app/models/cloud_account.rb:101:in `populate_realms_and_images' app/models/cloud_account.rb:88:in `populate_realms_and_images' app/controllers/cloud_accounts_controller.rb:42:in `create' haml (2.2.24) rails/./lib/sass/plugin/rails.rb:20:in `process' I'll poke around more, see if I can figure out the issue, but can't test much farther till this is resolved.
_______________________________________________ deltacloud-devel mailing list [email protected] https://fedorahosted.org/mailman/listinfo/deltacloud-devel
