Fix neutron configuration error

AttributeError: 'Provider' object has no attribute 'nics'

Just make nics always defined on the provider object.  Code that
uses it is wrapped with 'if use_neutron' anyway.

Change-Id: I4de69d7aaa7e262076ec0d1dc96d1dd365f9efd4
This commit is contained in:
James E. Blair 2014-04-02 15:10:53 -07:00
parent d1711aab80
commit 7b3df8acd5

View File

@ -943,8 +943,7 @@ class NodePool(threading.Thread):
p.rate = provider.get('rate', 1.0)
p.boot_timeout = provider.get('boot-timeout', 60)
p.use_neutron = bool(provider.get('networks', ()))
if p.use_neutron:
p.nics = provider.get('networks')
p.nics = provider.get('networks')
p.images = {}
for image in provider['images']:
i = ProviderImage()