Hammer hostgroup create does not add the content-view or lifecycle-environment options

Problem:
When creating a hostgroup, hammer does not add the specified content-view or lifecycle-environment options.

Create the hostgroup specifying the --content-view and --lifecycle-environment.

hammer hostgroup create \
  --name docker-ce-7-default \
  --architecture x86_64 \
  --content-view docker-ce-7 \
  --description "This host group uses the latest-1 patch set" \
  --domain local.net \
  --group-parameters-attributes "name=selinux-mode\,value=permissive\,parameter_type=string, \
                name=bootloader-append\,value=selinux=1 audit=1 transparent_hugepage=never\,parameter_type=string, \
                name=time-zone\,value=Etc/GMT\,parameter_type=string, \
                name=disable-firewall\,value=false\,parameter_type=boolean, \
                name=redhat_install_agent\,value=false\,parameter_type=boolean, \
                name=redhat_install_host_tools\,value=false\,parameter_type=boolean, \
                name=redhat_install_host_tracer_tools\,value=false\,parameter_type=boolean, \
                name=activation_key\,value=docker-ce-7-default\,parameter_type=string, \
                name=atomic\,value=false\,parameter_type=boolean, \
                name=subscription_manager\,value=true\,parameter_type=boolean, \
                name=subscription_manager_auto_attach\,value=false\,parameter_type=boolean, \
                name=subscription_manager_certpkg_url\,value=http://acilformn001/pub/katello-ca-consumer-latest.noarch.rpm\,parameter_type=string, \
                name=subscription_manager_org\,value=MyOrganization\,parameter_type=string, \
                name=package_upgrade\,value=true\,parameter_type=boolean, \
                name=loader_timeout\,value=2\,parameter_type=integer, \
                name=kernelcmd\,value=net.ifnames=0 biosdevname=0\,parameter_type=string, \
                name=use-ntp\,value=false\,parameter_type=boolean" \
  --kickstart-repository docker-ce-7 \
  --lifecycle-environment docker-ce-7_08-26-2022 \
  --location MyLocation \
  --medium rhel-server-7.9-x86_64-dvd-20200918 \
  --operatingsystem rhel-server-7.9-x86_64 \
  --organization MyOrganization \
  --partition-table "rhel-7-server-dynamic-xfs" \
  --pxe-loader "PXELinux BIOS"

Display the hostgroup. You can see the Content View and Lifecycle Environment are empty.

[root@acilformn001 os]# hammer hostgroup info --name docker-ce-7-default
Id:                    6
Name:                  docker-ce-7-default
Title:                 docker-ce-7-default
Description:
  This host group uses the latest-1 patch set
Network:
    Domain: local.net
Operating system:
    Architecture:     x86_64
    Operating System: rhel-server-7.9-x86_64
    Medium:           rhel-server-7.9-x86_64-dvd-20200918
    Partition Table:  rhel-7-server-dynamic-xfs
    PXE Loader:       PXELinux BIOS
Parameters:
    activation_key => docker-ce-7-default
    atomic => false
    bootloader-append => selinux=1 audit=1 transparent_hugepage=never
    disable-firewall => false
    kernelcmd => net.ifnames=0 biosdevname=0
    loader_timeout => 2
    package_upgrade => true
    redhat_install_agent => false
    redhat_install_host_tools => false
    redhat_install_host_tracer_tools => false
    selinux-mode => permissive
    subscription_manager => true
    subscription_manager_auto_attach => false
    subscription_manager_certpkg_url => http://acilformn001/pub/katello-ca-consumer-latest.noarch.rpm
    subscription_manager_org => MyOrganization
    time-zone => Etc/GMT
    use-ntp => false
Locations:
    MyLocation
Organizations:
    MyOrganization
Content View:
    Id:
    Name:
Lifecycle Environment:
    Id:
    Name:
Content Source:
    Id:
    Name:
Kickstart Repository:
    Id:

Update the --content-view and --lifecycle-environment options.

hammer hostgroup update \
  --name docker-ce-7-default \
  --content-view docker-ce-7 \
  --lifecycle-environment docker-ce-7_08-26-2022

Display the hostgroup. You can see the Content View and Lifecycle Environment are populated now.

[root@acilformn001 os]# hammer hostgroup info --name docker-ce-7-default
Id:                    6
Name:                  docker-ce-7-default
Title:                 docker-ce-7-default
Description:
  This host group uses the latest-1 patch set
Network:
    Domain: local.net
Operating system:
    Architecture:     x86_64
    Operating System: rhel-server-7.9-x86_64
    Medium:           rhel-server-7.9-x86_64-dvd-20200918
    Partition Table:  rhel-7-server-dynamic-xfs
    PXE Loader:       PXELinux BIOS
Parameters:
    activation_key => docker-ce-7-default
    atomic => false
    bootloader-append => selinux=1 audit=1 transparent_hugepage=never
    disable-firewall => false
    kernelcmd => net.ifnames=0 biosdevname=0
    loader_timeout => 2
    package_upgrade => true
    redhat_install_agent => false
    redhat_install_host_tools => false
    redhat_install_host_tracer_tools => false
    selinux-mode => permissive
    subscription_manager => true
    subscription_manager_auto_attach => false
    subscription_manager_certpkg_url => http://acilformn001/pub/katello-ca-consumer-latest.noarch.rpm
    subscription_manager_org => MyOrganization
    time-zone => Etc/GMT
    use-ntp => false
Locations:
    MyLocation
Organizations:
    MyOrganization
Content View:
    Id:   11
    Name: docker-ce-7
Lifecycle Environment:
    Id:   12
    Name: docker-ce-7_08-26-2022
Content Source:
    Id:
    Name:
Kickstart Repository:
    Id:

Expected outcome:
I expect the specified content-view and lifecycle-environment to be added to the hostgroup with the create command and not have to update it afterwards.

Foreman and Proxy versions:
Foreman 3.3 with Katello 4.5

Foreman and Proxy plugin versions:

[root@acilformn001 ~]# rpm -qa | grep -iE 'foreman|katello'
foreman-release-3.3.0-1.el7.noarch
foreman-3.3.0-1.el7.noarch
foreman-cli-3.3.0-1.el7.noarch
katello-common-4.5.0-1.el7.noarch
tfm-rubygem-katello-4.5.0-1.el7.noarch
foreman-service-3.3.0-1.el7.noarch
tfm-rubygem-hammer_cli_katello-1.5.2-1.el7.noarch
foreman-selinux-3.3.0-1.el7.noarch
foreman-postgresql-3.3.0-1.el7.noarch
katello-debug-4.5.0-1.el7.noarch
foreman-debug-3.3.0-1.el7.noarch
foreman-dynflow-sidekiq-3.3.0-1.el7.noarch
tfm-rubygem-hammer_cli_foreman_tasks-0.0.17-1.fm3_2.el7.noarch
katello-selinux-4.0.2-1.el7.noarch
katello-4.5.0-1.el7.noarch
foreman-installer-3.3.0-1.el7.noarch
tfm-rubygem-foreman-tasks-6.0.2-1.fm3_3.el7.noarch
tfm-rubygem-hammer_cli_foreman-3.3.0-1.el7.noarch
foreman-installer-katello-3.3.0-1.el7.noarch
foreman-proxy-3.3.0-1.el7.noarch
katello-client-bootstrap-1.7.9-1.el7.noarch
katello-repos-4.5.0-1.el7.noarch
katello-certs-tools-2.9.0-1.el7.noarch
tfm-rubygem-foreman_remote_execution-7.1.0-1.fm3_3.el7.noarch
rubygem-foreman_maintain-1.1.1-3.el7.noarch
tfm-rubygem-hammer_cli_foreman_remote_execution-0.2.2-1.fm3_0.el7.noarch

Distribution and version:
Red Hat Enterprise Linux Server release 7.9 (Maipo)
3.10.0-1160.71.1.el7.x86_64

Other relevant data: