Skip to content

Problem: Integrations JSON not correctly forwarded to the task template #3816

@maercu

Description

@maercu

Issue

v2.17.26-3b278d1-1773613270
when using integrations and extracting json data to a variable, the resulting variable is a string (go debug output) instead of a dict.

API-CALL

 curl -vvv -X POST http://localhost:3000/api/integrations/vw7lwr1c3vi7wmh8 -H "Content-Type: application/json" -d '{"data":{"id":2,"name":"test"}}'

PLAYBOOK (snippet)

- name: Debug
  ansible.builtin.debug:
    var: data

PLAY/TASK RESULT

TASK [Debug] 
ok: [localhost] => data: map[id:2 name:test]

EXPECTED PLAY/TASK RESULT

ok: [localhost] => 
    test:
        id: 2
        name: test

Impact

Ansible (task execution)

Installation method

Docker

Database

SQLite

Browser

No response

Semaphore Version

v2.17.26-3b278d1-1773613270

Ansible Version

Logs & errors

No response

Manual installation - system information

No response

Configuration

No response

Additional information

No response

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions