[Satellite6] Creating a hostgroup using hammer and setting parameter fails with: "Error: ApipieBindings::InvalidArgumentTypesError: hostgroup[group_parameters_attributes][0] - Hash was expected"

Solution Unverified - Updated -

Issue

  • I am trying to create parameters on a hostgroup using hammer, but this fails with the following error:

    # hammer hostgroup create --organization-id 1 --name testhg --group-parameters-attributes param1=value1,param2=value
    Could not create the hostgroup:
      Error: ApipieBindings::InvalidArgumentTypesError: hostgroup[group_parameters_attributes][0] - Hash was expected, hostgroup[group_parameters_attributes][1] - Hash was expected
    

Environment

  • Red Hat Satellite 6.4
  • hammer cli

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