Commit fd7c66f
committed
libvirt: 'video.vram' property must be an integer
The 'vram' property of the 'video' device must be an integer else
libvirt will spit the dummy out, e.g.
libvirt.libvirtError: XML error: cannot parse video vram '8192.0'
The division operator in Python 3 results in a float, not an integer
like in Python 2. Use the truncation division operator instead.
Change-Id: Iebf678c229da4f455459d068cafeee5f241aea1f
Signed-off-by: Stephen Finucane <[email protected]>
Closes-Bug: #1896496
(cherry picked from commit f2ca089)1 parent 7baca2b commit fd7c66f
File tree
2 files changed
+11
-7
lines changed- nova
- tests/unit/virt/libvirt
- virt/libvirt
2 files changed
+11
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6716 | 6716 | | |
6717 | 6717 | | |
6718 | 6718 | | |
6719 | | - | |
| 6719 | + | |
6720 | 6720 | | |
6721 | 6721 | | |
6722 | 6722 | | |
| |||
6727 | 6727 | | |
6728 | 6728 | | |
6729 | 6729 | | |
6730 | | - | |
6731 | | - | |
| 6730 | + | |
| 6731 | + | |
6732 | 6732 | | |
6733 | | - | |
| 6733 | + | |
| 6734 | + | |
| 6735 | + | |
| 6736 | + | |
| 6737 | + | |
6734 | 6738 | | |
6735 | 6739 | | |
6736 | | - | |
6737 | | - | |
| 6740 | + | |
6738 | 6741 | | |
| 6742 | + | |
6739 | 6743 | | |
6740 | 6744 | | |
6741 | 6745 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5522 | 5522 | | |
5523 | 5523 | | |
5524 | 5524 | | |
5525 | | - | |
| 5525 | + | |
5526 | 5526 | | |
5527 | 5527 | | |
5528 | 5528 | | |
| |||
0 commit comments