---
inputs:
  - name: exposed_ports
    type: ExposedPorts
executor:
  type: bash
  payload: |
    $LEAPP_ACTOR_OUTPUT '[{{range .exposed_ports.ports}}[{{.exposed_port}}, {{.port}}],{{end}}]'

---
inputs:
  - name: exposed_ports
    type: ExposedPorts
executor:
  type: bash
  payload: |
    $LEAPP_ACTOR_OUTPUT '[{{range $index, $element := .exposed_ports.ports}}{{if $index}},{{end}}[{{$element.exposed_port}}, {{$element.port}}]{{end}}]'

Fix output to be valid JSON
port-mapping-output: Fix output to be valid JSON
