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

Update fields included in JSON output for workers list #284

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

hnrkndrssn
Copy link
Contributor

@hnrkndrssn hnrkndrssn commented Oct 31, 2023

The fields that are included in the JSON output in worker list and worker view commands differ.

This PR updates the worker list output to match that of the worker view output.

Before

octopus worker list --space Default -f json | jq '.[] | select(.Name == "WorkerL0")'
{
  "Id": "Workers-1",
  "Name": "WorkerL0",
  "Type": "TentaclePassive",
  "WorkerPools": [
    {
      "Id": "WorkerPools-1",
      "Name": "Default Worker Pool"
    }
  ]
}

After

octopus worker list --space Default -f json | jq '.[] | select(.Name == "WorkerL0")'
{
  "Id": "Workers-1",
  "Name": "WorkerL0",
  "Type": "TentaclePassive",
  "HealthStatus": "Healthy",
  "StatusSummary": "Octopus was able to successfully establish a connection with this machine on Tuesday, 31 October 2023 12:06:43 pm +10:00",
  "WorkerPools": [
    {
      "Id": "WorkerPools-1",
      "Name": "Default Worker Pool"
    }
  ]
}

[sc-63235]

@hnrkndrssn hnrkndrssn self-assigned this Oct 31, 2023
@shortcut-integration
Copy link

@hnrkndrssn hnrkndrssn requested a review from a team October 31, 2023 02:27
@hnrkndrssn hnrkndrssn merged commit 9bb3d43 into main Oct 31, 2023
4 checks passed
@hnrkndrssn hnrkndrssn deleted the henrik/feat/workerdetails branch October 31, 2023 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants