diff options
author | Dan Smith <danms@us.ibm.com> | 2013-02-21 13:15:23 -0500 |
---|---|---|
committer | Dan Smith <danms@us.ibm.com> | 2013-02-26 09:57:17 -0500 |
commit | cdf5e432de2cf1c0c5466470a6a0bccf999fcdd4 (patch) | |
tree | 6df68bb406cfb9d1791b711b0beae5c65fc67081 /nova/utils.py | |
parent | a8fef8e5103973d8b9747bca3784c98e4075e454 (diff) | |
download | nova-cdf5e432de2cf1c0c5466470a6a0bccf999fcdd4.tar.gz nova-cdf5e432de2cf1c0c5466470a6a0bccf999fcdd4.tar.xz nova-cdf5e432de2cf1c0c5466470a6a0bccf999fcdd4.zip |
Fix crash in quantumapi if no network or port id is specified
The existing code assumes that if no port id or fixed ip was specified,
that the network id passed in is valid. This is not necessarily the case,
and results in adding None to the list of network ids, which later
causes a check to see if the network id list is empty to fail.
This only adds the network id to the list if it was specified, and
adds a more explicit check to the region that previously fell through
without finding a matching network so that a similar case would be
easier to debug in the future.
Addresses bug #1131264
Change-Id: I7a8aaea5772707b8bd6313249e74b1302eedefe8
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions