Closed WhatsARanjit closed 7 years ago
Demoed for TSEs. They provided some feedback:
NOTE: The hashify_group_array
reorders the JSON response so that it is not useable as a request's payload. An export
action would have to not do this. That is, this format won't work:
puppet node_manager groups --all --render-as json
Ditched the --all
flag. Refactored so if you don't supply an argument to the query, it will list all. For example:
List all
puppet node_manager groups
List one
puppet node_manager groups my_group
Revamped some of the returns so querying a single value would return pretty JSON and query multiple values would return a list of keys. Also added some better error handling based on HTTP codes. PR lives here: https://github.com/WhatsARanjit/prosvcs-node_manager/pull/21
Merged.
Running through the endpoints on https://docs.puppet.com/pe/latest/nc_index.html
Considerations