Skip to content

gru --json chassis boot <something> --now does not return a valid JSON object #38

@rustydb

Description

@rustydb
SUMMARY
ISSUE TYPE
  • Bug Report
STEPS TO REPRODUCE
  1. Run gru --json chassis boot <something> --now
EXPECTED RESULTS

Printed value should be a parseable JSON object, instead of two separate JSON objects.

ACTUAL RESULTS

JSON objects should be merged, so jq or any other JSON interpreter may parse the output.

redbull-management:~/doomslayer # gru -j chassis boot bios --now ncn-s001-mgmt ncn-s002-mgmt ncn-s003-mgmt
{
  "ncn-s001-mgmt": {
    "target": "BiosSetup"
  },
  "ncn-s002-mgmt": {
    "target": "BiosSetup"
  },
  "ncn-s003-mgmt": {
    "target": "BiosSetup"
  }
}
{
  "ncn-s001-mgmt": {
    "previousPowerState": "On",
    "resetType": "ForceRestart"
  },
  "ncn-s002-mgmt": {
    "previousPowerState": "On",
    "resetType": "ForceRestart"
  },
  "ncn-s003-mgmt": {
    "previousPowerState": "On",
    "resetType": "ForceRestart"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions