Skip to content

fix: KCL dict merge for vsphere in vm-provision#56

Merged
patrick-hermann-sva merged 1 commit intomainfrom
fix/vm-provision-kcl-dict
Apr 9, 2026
Merged

fix: KCL dict merge for vsphere in vm-provision#56
patrick-hermann-sva merged 1 commit intomainfrom
fix/vm-provision-kcl-dict

Conversation

@patrick-hermann-sva
Copy link
Copy Markdown
Contributor

Summary

  • Fix KCL dict override where conditional vsphere fields (folderPath, datacenter, etc.) replaced the entire vm dict
  • Build vm dict separately with |= merge operator before assigning to spec

Test plan

  • Tested vSphere VM + Ansible end-to-end (IP 10.31.103.26)
  • Tested Proxmox VM + Ansible end-to-end (IP 10.31.101.166)

🤖 Generated with Claude Code

KCL conditional blocks inside a dict literal override previous keys.
Build the vm dict separately with |= merge operator, then assign once.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@patrick-hermann-sva patrick-hermann-sva merged commit ae1b37a into main Apr 9, 2026
@patrick-hermann-sva patrick-hermann-sva deleted the fix/vm-provision-kcl-dict branch April 10, 2026 08: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