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

Add unreachable bool task hosts item #100

Merged
merged 3 commits into from
Jun 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@

### Added
- `ExecutorTimeMeasurement` is a decorator defined on `github.com/apenella/go-ansible/pkg/execute`, that measures the duration of an execution, it receives an `Executor` which is measured the execution time
- Add `unreachable` state on task play results struct `AnsiblePlaybookJSONResultsPlayTaskHostsItem`

### Chanded
- `MockExecute` uses `github.com/stretchr/testify/mock`
- Examples' name is prefixed by `ansibleplaybook` or `ansibleadhoc`

### Removed
- `DefaultExecutor` does not measures the execution duration anymore. Instead of it, `ExecutorTimeMeasurement` must be used

1 change: 1 addition & 0 deletions pkg/stdoutcallback/results/JSONResults.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ type AnsiblePlaybookJSONResultsPlayTaskHostsItem struct {
FailedWhenResult bool `json:"failed_when_result"`
Skipped bool `json:"skipped"`
SkipReason string `json:"skip_reason"`
Unreachable string `json:"unreachable"`
}

type AnsiblePlaybookJSONResultsPlayTaskItem struct {
Expand Down