Katello-nightly missing content view environment attributes on Hostgroups page
The new hostgroup page no longer shows fields for content view, lce and content source in the nightly.
- Configure -> Hostgroups
- Create -> Hostgroup
Note we don't see CV, lce and cs fields.
This breakage occurred after https://github.com/theforeman/foreman/commit/fe5c585bd98cb8612d7d401c96b0ed1dd7d5f63d#diff-2659b08f086073e0fb1a1baca1f0ea16d963a88f730d2e08ee7812600832eb16L30 removed the hostgroup_puppet_environment_field field.
Katello was looking for that field here and content attributes are missing -> https://github.com/Katello/katello/blob/master/app/overrides/add_activation_keys_input.rb#L13
- Configure -> Hostgroup
- Create host group
This would not show cv, lce and cs.
This error occurs because
hostgroup_puppet_environment_field was removed
This PR fixes this issue by changing the insert before
to the appropriate field .