app/controllers/katello/concerns/api/v2/registration_controller_extensions.rb in katello-4.1.2.1 vs app/controllers/katello/concerns/api/v2/registration_controller_extensions.rb in katello-4.1.3

- old
+ new

@@ -17,10 +17,12 @@ end end def host_setup_extension if params['host']['lifecycle_environment_id'] - @host.update!(lifecycle_environment: KTEnvironment.readable.find(params['host']['lifecycle_environment_id'])) + new_lce = KTEnvironment.readable.find(params['host']['lifecycle_environment_id']) + @host.content_facet.lifecycle_environment = new_lce + @host.update_candlepin_associations end super end end