update pci_passthrough template variables

While it works as is, the output does not match nova docs.
nova_pci_passthrough_whitelist:
    '{ "vendor_id": "10de", "product_id": "15f7" }'
outputting
passthrough_whitelist = "{ "vendor_id": "10de", "product_id": "15f7" }"
instead of the following as expected
passthrough_whitelist = { "vendor_id": "10de", "product_id": "15f7" }
same thing happens with the alias lines.  This hits all release back to
at least pike.

Change-Id: I5fc34689eb12e6bd9b4f8977f2b9eebe637f11ec
This commit is contained in:
Matthew Thode 2019-02-15 09:46:02 -06:00
parent 76a1b307a0
commit 4d01d54269
No known key found for this signature in database
GPG Key ID: 64A37BEAAE19A4E8
1 changed files with 2 additions and 2 deletions

View File

@ -352,12 +352,12 @@ enabled_vgpu_types = {{ enabled_vgpu_types | join(',') }}
[pci]
{% if nova_pci_passthrough_whitelist %}
# White list of PCI devices available to VMs.
passthrough_whitelist = "{{ nova_pci_passthrough_whitelist }}"
passthrough_whitelist = {{ nova_pci_passthrough_whitelist }}
{% endif %}
{% if nova_pci_alias %}
# PCI Alias
{% for item in nova_pci_alias %}
alias = "{{item}}"
alias = {{item}}
{% endfor %}
{% endif %}
{% endif %}