Commit 8489e0b
fix(vm_collect,vm_hot_plug): fix label selector and memory bugs (#8)
* fix(vm_collect, vm_hot_plug): fix copy-paste bugs breaking label selector queries and memory hotplug
Three bugs fixed:
1. vm_collect: task name referenced vm_backup_restore_collect_obj and
collect_obj_default_kind (leftover from backup_restore role), causing
undefined variable errors when using label_selectors. Fixed to use
vm_collect_obj and vm_collect_obj_default_kind.
2. vm_collect: set_fact in the label_selectors block referenced
vm_collect_no_label_selectors_response (the loop_var from the other
block) instead of vm_collect_label_selectors_response. This caused
VMs queried via label_selectors to never be added to the collection,
resulting in an empty VM list downstream.
3. vm_hot_plug: compute_patch.yml.j2 checked for 'cpu' instead of
'memory' when deciding whether to patch domain/memory/guest. Memory-
only hotplug was silently skipped; cpu-only hotplug would fail trying
to render an undefined memory value.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: add missing allowlist_externals for tox-ansible environments
* fix: let tox-ansible manage test commands instead of overriding
* fix: add distlib to testenv deps for galaxy/sanity manifest support
* fix: remove testenv overrides — only set allowlist_externals, let tox-ansible manage deps/commands
* fix: add distlib to galaxy tox env for manifest support
* fix: restore original testenv config, only add allowlist_externals
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent f54510c commit 8489e0b
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments