Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rustydb opened this issue Jan 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@rustydb
Copy link
Contributor

rustydb commented Jan 11, 2024

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"
  }
}
@rustydb rustydb added the bug Something isn't working label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant