[Satellite6] When trying to update smart class parameter default values via the API, values that are of type hash fail validations.

Solution Verified - Updated -

Issue

  • When trying to update smart class parameter default values via the API, values that are of type hash fail validations:
Example JSON data
{
  "smart_class_parameter": {
    "parameter_type": "hash",
    "merge_overrides": true,
    "use_puppet_default": false,
    "override": true,
    "default_value": {
      "sshd": "ALL",
      "vsftpd": "ALL",
      "snmpd": [
        "10.1.2.10",
        "10.1.3.10",
        "10.1.2.11",
        "10.1.3.11"
      ]
    },
    "merge_default": true,
    "required": false
  }
}

Environment

  • Red Hat Satellite 6.7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content