Skip to content

[Bug]: 400 Bad Request: {'tagged_vlans': ['Expected a list of items but got type "int".']}\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1} #1039

Answered by leijonatm
leijonatm asked this question in Q&A
Discussion options

You must be logged in to vote

With the help of Nikos Kallergis found the answer which is change the datastructure of the tagged_vlans from

tagged_vlans:

  • vlan1000
  • vlan1015
    to

tagged_vlans:

  • name: vlan1000
  • name: vlan1015
    and change the task from

tagged_vlans:
name: "{{ item.1.tagged_vlans.0|default(omit) }}"
to

tagged_vlans: "{{ item.1.tagged_vlans.0|default(omit) }}"

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by leijonatm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #1036 on July 22, 2023 22:29.