diff options
author | Russell Bryant <rbryant@redhat.com> | 2013-02-22 13:19:42 -0500 |
---|---|---|
committer | Russell Bryant <rbryant@redhat.com> | 2013-02-22 16:59:13 -0500 |
commit | f4f6464f58482fe0c1193cadddb2db56dc4a2434 (patch) | |
tree | fc5981be4e43065910757b78c56d058cd00e9039 /nova/utils.py | |
parent | bdb73e20585e330a0d81bdbbb197d038c2601967 (diff) | |
download | nova-f4f6464f58482fe0c1193cadddb2db56dc4a2434.tar.gz nova-f4f6464f58482fe0c1193cadddb2db56dc4a2434.tar.xz nova-f4f6464f58482fe0c1193cadddb2db56dc4a2434.zip |
Ensure macs can be serialized.
This patch uses to_primitive() to ensure that the macs argument to the
rpcapi method allocate_for_instance() can be serialized by rpc drivers.
Specifically, the powervm driver uses a set() here, and that will cause
breakage in non-kombu drivers.
Fix bug 1131035.
Change-Id: I5729c5854799e49c6598e4dd2a4da487598307f1
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions