Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Ensure check mode results are as expected #155

Merged
merged 1 commit into from
Jul 10, 2020

Conversation

willthames
Copy link
Collaborator

SUMMARY

check_mode with wait updates the result based on the existing resource
which won't change with check_mode, so returns incorrect results.
Only run the wait checks in non check_mode (this also avoids the issue
of waiting for resource creation that will never happen in check mode)

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

raw

@codecov
Copy link

codecov bot commented Jul 8, 2020

Codecov Report

Merging #155 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #155   +/-   ##
=======================================
  Coverage   42.41%   42.41%           
=======================================
  Files           3        3           
  Lines         547      547           
  Branches      111      111           
=======================================
  Hits          232      232           
  Misses        271      271           
  Partials       44       44           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2e86b56...e3223a8. Read the comment docs.

check_mode with wait updates the result based on the existing resource
which won't change with check_mode, so returns incorrect results.
Only run the wait checks in non check_mode (this also avoids the issue
of waiting for resource creation that will never happen in check mode)
@willthames willthames force-pushed the check_mode_results branch from 60328dc to e3223a8 Compare July 8, 2020 11:47
@fabianvf fabianvf merged commit 806c808 into ansible-collections:master Jul 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants