Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(bors): merge pull request openebs#788
788: fix(getNode): return single element in get node r=sinhaashish a=sinhaashish There was a regression issue in which `kubectl-mayastor get node node-1-155665 -ojson` was returning an array ``` [ { "id": "node-1-155665", "spec": { "grpcEndpoint": "135.181.42.41:10124", "id": "node-1-155665", "node_nqn": "nqn.2019-05.io.openebs:node-name:node-1-155665" }, "state": { "grpcEndpoint": "135.181.42.41:10124", "id": "node-1-155665", "status": "Online", "node_nqn": "nqn.2019-05.io.openebs:node-name:node-1-155665" } } ] ``` Earlier in 2.5 release it was returning a single element as below: ``` { "id": "node-1-155665", "spec": { "grpcEndpoint": "135.181.42.41:10124", "id": "node-1-155665", "node_nqn": "nqn.2019-05.io.openebs:node-name:node-1-155665" }, "state": { "grpcEndpoint": "135.181.42.41:10124", "id": "node-1-155665", "status": "Online", "node_nqn": "nqn.2019-05.io.openebs:node-name:node-1-155665" } } ``` This PR fixes that Co-authored-by: sinhaashish <ashi.sinha.87@gmail.com>
- Loading branch information