Skip to content

Conversation

mcdonaldseanp
Copy link
Contributor

Status

[Ready for Merge]

Description

Updates to the list and delete commands to include a --json option so those commands can be used with scripts and automation that require structured output.

Additionally, add better error handling of status codes from ABS

Related Issues

Todos

  • Tests
  • Documentation

Reviewers

@puppetlabs/dio
@highb
@briancain

@mcdonaldseanp mcdonaldseanp requested review from briancain, highb and a team as code owners August 12, 2020 19:58
Copy link
Contributor

@briancain briancain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of notes of feedback!

This commit adds an option `--json` to the list and delete commands. When the
json flag is used the commands will print output as formatted JSON rather than
pretty printed strings.
When ABS returns an http status code other than 200 or 202, the ABS code
should fail
@mcdonaldseanp
Copy link
Contributor Author

@briancain updated :)

Copy link
Contributor

@briancain briancain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to me. I can't these these against this pooler, so if someone wanted to do that, that would be great :)

@mattkirby mattkirby merged commit d3d6ebe into puppetlabs:master Aug 20, 2020
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.

4 participants