Rake error on os creation

Problem:

creating an OS with :

  • name: “Create RHEL 8.7 System”
    theforeman.foreman.operatingsystem:
    server_url: https://10.34.58.90/
    username: admin
    password: admin
    validate_certs: false
    name: WL-RHEL
    description: “WL RedHat Release 8.7”
    family: Redhat
    major: 8
    minor: 7
    password_hash: SHA512
    provisioning_templates:
    - “WL-RH8-kickstart custom post”
    - WL-RH8-PXE
    - WL-RH8-kickstart
    ptables:
    - WL-PART-RH-0522
    state: present

when on the GUI, if I look at it got :

Oops, we’re sorry but something went wrong undefined method `name’ for nil:NilClass

Expected outcome:

Foreman and Proxy versions:
Foreman version: 3.5.2
Plugins:

  • foreman_bootdisk 21.0.3
  • foreman_discovery 22.0.2
  • foreman_expire_hosts 8.1.0
  • foreman_puppet 5.0.0
  • foreman_templates 9.3.0