Operations/tasks support machines as receivers #11978
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of change
The new opt-in action UX did not handle listing operations, show task etc for juju run actions, since for those the receiver is a machine, and only a unit receiver was supported.
Add support for either unit or machine receivers for processing operations/tasks. Also enhance the operations query to support machines. Usage is opt-in using a feature flag and new "machines" query parameter is optional so no facade bump needed.
QA steps
juju exec --machine 1 hostname
juju operations --machine 1
juju show-task 2 --format yaml