Commit a5adc31
committed
Fix PCI passthrough default templates
Even though the variable ``gpu_group_map`` has default value of {}
defined at stackhpc-compute.yml, it can be set to anything by users.
Therefore, Using dict2items filter with it can cause unexpected
templating error.
Fixing this by setting {} as a default of ``gpu_group_map`` before
using dict2items filter.
So even if ``gpu_group_map`` becomes undefined for some reason, it
doesn't fail in run time.1 parent 9202db2 commit a5adc31
File tree
3 files changed
+3
-3
lines changed- etc/kayobe
- ansible
- kolla/config/nova
3 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments