"Reset Puppet Environment to match selected Content View" does not work
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1336802
Description of problem:
When creating a new Host in Satellite 6.2 BETA, one always needs to select the "Puppet Environment" because "Reset Puppet Environment to match selected Content View" does not work/set the Environment as expected respectively as done in Satellite 6.1.
It's also not possible to leave "Puppet Environment" blank and therefore simply inherit what was defined in the HostGroup. Since this was working on Satellite 6.1, customers are expecting this to work again.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Setup Satellite 6.2 BETA (I'm using SNAP 11)
2. Configure Satellite 6.2 BETA
3. Define new Host and use "Reset Puppet Environment to match selected Content View" for the selection of the "Puppet Environment"
No "Puppet Environment" defined
The "Puppet Environment" defined in the HostGroup should be selected and added to this host
Fixes #15295 - Puppet env populated in New Hosts
Prior to this commit on a new hosts page if you selected a Hostgroup,
the Puppet Environment property will not get inherited automatically.
This commit addresses that issue.