diff options
author | Rick Harris <rconradharris@gmail.com> | 2013-02-22 19:29:12 +0000 |
---|---|---|
committer | Rick Harris <rconradharris@gmail.com> | 2013-02-22 19:29:12 +0000 |
commit | 2763749dec5be9c6a279cf6c5e23a89f1f98b2c0 (patch) | |
tree | dbce3d27506ce243999d2034a38b39ffbac52d64 /nova/utils.py | |
parent | a42845e455c74f41852babbbd09a3514021ea71d (diff) | |
download | nova-2763749dec5be9c6a279cf6c5e23a89f1f98b2c0.tar.gz nova-2763749dec5be9c6a279cf6c5e23a89f1f98b2c0.tar.xz nova-2763749dec5be9c6a279cf6c5e23a89f1f98b2c0.zip |
libvirt: lxml behavior breaks version check.
lxml doesn't roundtrip empty strings, meaning if you serialize
and element with value '', when you derserialize it, the value will be
`None`.
This broke the version_string_with_package check because None and ''
will not compare as equivalent.
The solution is to coerce the None value back to an empty string before
running the check.
Change-Id: Ia3a8ae68f12a4645057d243fdee59197df40e8d3
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions