@domcleal, good point, besides environment, is there any other parameters that would affect overridable lookup_keys shown on the parameter tab.  I don't think so.  If correct, I will just update environment_id on @obj.  Remember we removed @host.attributes = params['host'] since this was causing puppletclass_ids= to insert rows before form submit.