Skip to content

Output of running a method is not the actual output #596

@walterheck

Description

@walterheck

I regularly run methods by themselves on the command line to see if they work. I notice that the output isn't the actual output but the swamp output. See this for instance:

> swamp model method run hristo-lxc listContainers --json
{
  "modelId": "3600a12a-66dc-495b-979f-46cbe923d6dc",
  "modelName": "hristo-lxc",
  "type": "@proxmox/lxc",
  "methodName": "listContainers",
  "data": {
    "id": "b6927440-8dda-42b3-ab68-ef8776204910",
    "path": "/Users/walterheck/Source/helixiora/internal/swamp-test/.swamp/data/@proxmox/lxc/3600a12a-66dc-495b-979f-46cbe923d6dc/list-containers/1"
  }
}

I want to see the actual containers this returns and not go into that log file to see them:

walterheck in ~/Source/helixiora/internal/swamp-test
> cat /Users/walterheck/Source/helixiora/internal/swamp-test/.swamp/data/@proxmox/lxc/3600a12a-66dc-495b-979f-46cbe923d6dc/list-containers/1/raw 
=== Listing LXC Containers on proxmox ===

Started: 2026-03-04T08:17:18.254Z


Request URL: https://6.6.6.6:8006/api2/json/nodes/proxmox/lxc

Using SSH alias: hetzner (bypassing SSL)

Found 0 containers

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageLabel to let the maintainers know what issues need triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions