Bug #11749
closednew host puppet environment jquery selector too liberal
Description
When creating a host or hostgroup and selecting just the puppet environment, no puppet classes get loaded on the 'puppet classes' tab. The user has to select a lifecycle env and content view and only then will they be loaded.
Once those are selected the user can change the puppet env at will, but this should not be required
Updated by Justin Sherrill over 8 years ago
- Project changed from Katello to Foreman
- Subject changed from puppet class population on new host/hostgroup page requires lifecycle env/content view selection to new host puppet environment jquery selector too liberal
- Category changed from 83 to Host creation
- Status changed from New to Assigned
This appears to be a result of https://github.com/theforeman/foreman/blob/develop/app/assets/javascripts/application.js#L387
this selector:
$('select[name*=environment_id]')
seems to be matching 'name=host[environment_id]' but its also matching 'name=host[content_facet_attributes][lifecycle_environment_id]'
We should make the selector more restrictive. Moving to foreman
Updated by Justin Sherrill over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 4eeea97393e19327f39002e86f0fb4f97415cc1a.