Skip to content

Multiselect error: Invalid parameter <param> value: hal value '<value>', but should be in [] #606

Open
@mverboom

Description

@mverboom

Hi,

Not 100% sure if my configuration is valid, however it seems to work find as long as I don't select anything on the multiselect :)

The main configuration file is:

{
  "name": "test",
  "script_path": "ls",
  "output_format": "terminal",
  "include": "test.inc",
  "parameters": [
    {
      "name": "dir",
      "required": true,
      "default": "/tmp",
      "constant": true
    }
  ]
}

The included file is:

{
  "hidden": true,
  "parameters": [
    {
      "name": "Files",
      "type": "multiselect",
      "values": {
        "script": "ls ${dir}"
      },
      "multiselect_argument_type": "argument_per_value"
    }
  ]
}

The multiselect is populated, and works as expected. However, selecting an option results in an error. For example, selecting the item call results in:

Calling the script...

Invalid parameter Files value: has value 'call', but should be in []

And the same in the logs:

2022-12-16 11:46:55,295 [web_server.ERROR] Invalid parameter Files value: has value 'call', but should be in []
2022-12-16 11:46:55,296 [tornado.access.WARNING] 400 POST /executions/start (192.168.1.55) 15.99ms

Is this configuration invalid, or am I running into a bug?

Regards,

Mark

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions