Provisioning Template Section for EC2 based hosts with Hostgroups

Problem: When creating a new host to be deployed in AWS, I can not resolve a provisioning template once I have selected a Host Group. I have a default template selected for the operating system, and it resolves properly as long as a host group is not selected. I have added the Host Group/Environment as a valid combination to the template. The Host Group can be applied making all of it’s settings, and then if I uncheck the host group, I can resolve a template.

Expected outcome: Being able to resolve a template while the host group is selected.

Foreman and Proxy versions: 1.24.2

Foreman and Proxy plugin versions: 1.24.2

Distribution and version: Debian 10.3

Other relevant data:
With Host Group Selected
2020-04-14T13:46:41 [I|app|7620bc07] Started POST “/hosts/template_used?provisioning=image” for 65.26.210.239 at 2020-04-14 13:46:41 -0500
2020-04-14T13:46:41 [I|app|7620bc07] Processing by HostsController#template_used as /
2020-04-14T13:46:41 [I|app|7620bc07] Parameters: {“utf8”=>“✓”, “authenticity_token”=>“qhlA5YlCaHoVJOeSsiyc0pLGWR3ZqekGpFH5pOwzbAgtYZSvrnt/r4WUK3TWQDOMtUA6eoZyrRlWn0d93MzlAg==”, “host”=>{“name”=>“otis-deval”, “organization_id”=>“7”, “location_id”=>“9”, “hostgroup_id”=>“2”, “puppetclass_ids”=>[""], “managed”=>“true”, “progress_report_id”=>"[FILTERED]", “type”=>“Host::Managed”, “interfaces_attributes”=>{“0”=>{"_destroy"=>“0”, “type”=>“Nic::Managed”, “mac”=>"", “identifier”=>"", “name”=>“otis-deval”, “domain_id”=>“1”, “ip”=>"", “ip6”=>"", “managed”=>“1”, “primary”=>“1”, “provision”=>“1”, “execution”=>“1”, “virtual”=>“0”, “tag”=>"", “attached_to”=>""}, “new_interfaces”=>{"_destroy"=>“1”, “type”=>“Nic::Managed”, “mac”=>"", “identifier”=>"", “name”=>"", “domain_id”=>"", “ip”=>"", “ip6”=>"", “managed”=>“1”, “primary”=>“0”, “provision”=>“0”, “execution”=>“0”, “virtual”=>“0”, “tag”=>"", “attached_to”=>""}}, “compute_attributes”=>{“flavor_id”=>“t3.medium”, “availability_zone”=>"", “subnet_id”=>“subnet-18f61434”, “security_group_ids”=>["", “sg-635e3c1f”, “sg-e56cc299”], “managed_ip”=>“public”, “image_id”=>“ami-0ea72b3d1d9d14f4c”}, “architecture_id”=>“1”, “operatingsystem_id”=>“1”, “provision_method”=>“image”, “build”=>“1”, “medium_id”=>"", “ptable_id”=>"", “pxe_loader”=>"", “disk”=>"", “root_pass”=>"[FILTERED]", “is_owned_by”=>“5-Users”, “enabled”=>“1”, “comment”=>"", “overwrite”=>“false”}, “fakepassword”=>"[FILTERED]", “provisioning”=>“image”}
2020-04-14T13:46:41 [I|app|7620bc07] Rendering common/404.html.erb within layouts/application
2020-04-14T13:46:41 [I|app|7620bc07] Rendered common/404.html.erb within layouts/application (0.8ms)
2020-04-14T13:46:41 [I|app|7620bc07] Rendered layouts/_application_content.html.erb (0.4ms)
2020-04-14T13:46:41 [I|app|7620bc07] Rendering layouts/base.html.erb
2020-04-14T13:46:41 [I|app|7620bc07] Rendered layouts/base.html.erb (22.6ms)
2020-04-14T13:46:41 [I|app|7620bc07] Completed 404 Not Found in 53ms (Views: 23.5ms | ActiveRecord: 6.9ms)

Without Host Group Selected
2020-04-14T13:45:40 [I|app|d5593c0a] Started POST “/hosts/template_used?provisioning=image” for 65.26.210.239 at 2020-04-14 13:45:40 -0500
2020-04-14T13:45:40 [I|app|d5593c0a] Processing by HostsController#template_used as /
2020-04-14T13:45:40 [I|app|d5593c0a] Parameters: {“utf8”=>“✓”, “authenticity_token”=>“F8bQVdVrDbU5yK3DEGEtDhKcDqTf/4m8UXMS/w80VH+QvgQf8lIaYKl4YSV0DYJQNRptw4AkzaOjvawmP8vddQ==”, “host”=>{“name”=>“otis-deval”, “organization_id”=>“7”, “location_id”=>“9”, “hostgroup_id”=>"", “compute_resource_id”=>“2”, “compute_profile_id”=>“2”, “environment_id”=>“1”, “puppet_proxy_id”=>“1”, “puppet_ca_proxy_id”=>“1”, “puppetclass_ids”=>[""], “managed”=>“true”, “progress_report_id”=>"[FILTERED]", “type”=>“Host::Managed”, “interfaces_attributes”=>{“0”=>{"_destroy"=>“0”, “type”=>“Nic::Managed”, “mac”=>"", “identifier”=>"", “name”=>“otis-deval”, “domain_id”=>“1”, “ip”=>"", “ip6”=>"", “managed”=>“1”, “primary”=>“1”, “provision”=>“1”, “execution”=>“1”, “virtual”=>“0”, “tag”=>"", “attached_to”=>""}, “new_interfaces”=>{"_destroy"=>“1”, “type”=>“Nic::Managed”, “mac”=>"", “identifier”=>"", “name”=>"", “domain_id”=>"", “ip”=>"", “ip6”=>"", “managed”=>“1”, “primary”=>“0”, “provision”=>“0”, “execution”=>“0”, “virtual”=>“0”, “tag”=>"", “attached_to”=>""}}, “compute_attributes”=>{“flavor_id”=>“t3.medium”, “availability_zone”=>"", “subnet_id”=>“subnet-18f61434”, “security_group_ids”=>["", “sg-635e3c1f”, “sg-e56cc299”], “managed_ip”=>“public”, “image_id”=>“ami-0ea72b3d1d9d14f4c”}, “architecture_id”=>“1”, “operatingsystem_id”=>“1”, “provision_method”=>“image”, “build”=>“1”, “medium_id”=>"", “ptable_id”=>"", “pxe_loader”=>"", “disk”=>"", “root_pass”=>"[FILTERED]", “is_owned_by”=>“5-Users”, “enabled”=>“1”, “comment”=>"", “overwrite”=>“false”}, “fakepassword”=>"[FILTERED]", “provisioning”=>“image”}
2020-04-14T13:45:40 [I|app|d5593c0a] Rendered hosts/_provisioning.html.erb (2.2ms)
2020-04-14T13:45:40 [I|app|d5593c0a] Completed 200 OK in 34ms (Views: 2.3ms | ActiveRecord: 7.0ms)
2020-04-14T13:45:42 [I|app|6aa68c7b] Started GET “/notification_recipients” for 65.26.210.239 at 2020-04-14 13:45:42 -0500
2020-04-14T13:45:42 [I|app|6aa68c7b] Processing by NotificationRecipientsController#index as JSON
2020-04-14T13:45:42 [I|app|6aa68c7b] Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 1.1ms)

Is anyone successfully using hostgroups when provisioning EC2 instances?