Skip to content

fix: report a clear error for a merge-key unset - #2697

Merged
dan-petty merged 1 commit into
mainfrom
fix/2656-devops-config-unset-stops-with-a
Oct 29, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/2656-devops-config-unset-stops-with-a

Conversation

@devops-cli-service

Copy link
Copy Markdown
Contributor

Plans #2656

When a config key is present only through a YAML merge key (<<: *anchor), devops config unset crashes with a TypeError because ruamel.yaml gives no position for a merged key. This change detects the merge-derived key in _find and raises a ConfigurationError that names the file and states the key comes from a merge key. The command exits 1 with a clear message instead of a traceback. Direct key removal is unchanged.

Change: openspec/changes/2656-devops-config-unset-stops-with-a/

@dan-petty
dan-petty marked this pull request as ready for review October 29, 2026 22:43
@dan-petty
dan-petty self-requested a review as a code owner October 29, 2026 22:43
@dan-petty
dan-petty merged commit 676d505 into main Oct 29, 2026
16 checks passed
@dan-petty
dan-petty deleted the fix/2656-devops-config-unset-stops-with-a branch October 29, 2026 22:44
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.

1 participant