fix: fail clearly when vitals_scan runs in check mode - #103
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Thanks for opening this PR. Assigned to @sameeralam3127. Labels added: |
Keep both entries: the ansible-core 2.16 community.general note from sameeralam3127#101 followed by the check-mode entry. Also drops the stray double blank line before the check-mode entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks @Tiyatrotist. CI is green, and refusing check mode (option 2 in #38) is an acceptable choice. A few things before this can merge: 1. Merge conflict in 2. Guard the unguarded dereferences (#38 asks for this whichever option is chosen)
These are the same kind of latent failure as #25 (stale or partial cached facts), so the new assert doesn't cover them. 3. Acceptance criteria scope 4. Local validation |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Implements the explicit-refusal option from #38.
vitals_scannow stops before discovery with one explanatory assertion when Ansible check mode is active, avoiding the later undefined-fact cascade. Troubleshooting docs describe the contract, and a structural regression test keeps the guard ahead of discovery.Closes #38.
Local pytest/Ansible execution was not run because the connected development machine is currently offline.