Project

General

Custom queries

Profile

Actions

Bug #11749

closed

new host puppet environment jquery selector too liberal

Added by Justin Sherrill over 9 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
High
Category:
Host creation
Target version:
Difficulty:
medium
Triaged:
Fixed in Releases:
Found in Releases:

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


Related issues 1 (0 open1 closed)

Related to Katello - Bug #13988: Hostgroups Puppet Class management issueRejectedDavid Davis03/01/2016Actions
Actions #7

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

Actions #10

Updated by Justin Sherrill over 8 years ago

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

Also available in: Atom PDF