softlayer / softlayer-python

A set of Python libraries that assist in calling the SoftLayer API.
http://softlayer.github.io/softlayer-python/
MIT License
152 stars 195 forks source link

Bad tables on `vs detail` #2165

Closed allmightyspiff closed 3 months ago

allmightyspiff commented 4 months ago
$> slcli vs detail 102396266
┌────────────────────┬───────────────────────────────────────────────────────────────┐
│               name │ value                                                         │
├────────────────────┼───────────────────────────────────────────────────────────────┤
│                 id │ 102396266                                                     │
│               guid │ 72d084a8-c0aa-4e42-a199-8be397274139                          │
│           hostname │ reserved                                                      │
│             domain │ example.com                                                   │
│               fqdn │ reserved.example.com                                          │
│             status │ Active                                                        │
│              state │ Halted                                                        │
│ active_transaction │ -                                                             │
│         datacenter │ dal13                                                         │
│                 os │ -                                                             │
│         os_version │ -                                                             │
│              cores │ 2                                                             │
│             memory │ 4G                                                            │
│             drives │ <SoftLayer.CLI.formatting.Table object at 0x0000021AFAEB4F50> │
│          public_ip │ -                                                             │
│         private_ip │ -                                                             │
│       private_only │ True                                                          │
│        private_cpu │ False                                                         │
│          transient │ False                                                         │
│            created │ 2020-05-12T14:10:22-06:00                                     │
│           modified │ 2024-06-21T05:14:10-06:00                                     │
│   last_transaction │ Cloud Migrate             (2024-06-21 05:14)                  │
│            billing │ Monthly                                                       │
│             preset │ -                                                             │
│              owner │ None                                                          │
│              vlans │ <SoftLayer.CLI.formatting.Table object at 0x0000021AFB9AAC90> │
│          Bandwidth │ <SoftLayer.CLI.formatting.Table object at 0x0000021AFB986BD0> │
│              notes │ -                                                             │
│               tags │ -                                                             │
└────────────────────┴───────────────────────────────────────────────────────────────┘

Looks to be only for empty lists

slcli --format=json vs detail 102396266 --passwords
{
  "id": 102396266,
  "guid": "72d084a8-c0aa-4e42-a199-8be397274139",
  "hostname": "reserved",
  "domain": "example.com",
  "fqdn": "reserved.example.com",
  "status": "ACTIVE",
  "state": "HALTED",
  "active_transaction": null,
  "datacenter": "dal13",
  "os": "-",
  "os_version": "-",
  "cores": 2,
  "memory": 4096,
  "drives": [],
  "public_ip": "-",
  "private_ip": "-",
  "private_only": true,
  "private_cpu": false,
  "transient": false,
  "created": "2020-05-12T14:10:22-06:00",
  "modified": "2024-06-21T05:14:10-06:00",
  "last_transaction": "Cloud Migrate             (2024-06-21 05:14)",
  "billing": "Monthly",
  "preset": "-",
  "owner": null,
  "vlans": [],
  "Bandwidth": [],
  "notes": "-",
  "users": [],
  "tags": null
}