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:
parent
d1711aab80
commit
7b3df8acd5
@ -943,8 +943,7 @@ class NodePool(threading.Thread):
|
|||||||
p.rate = provider.get('rate', 1.0)
|
p.rate = provider.get('rate', 1.0)
|
||||||
p.boot_timeout = provider.get('boot-timeout', 60)
|
p.boot_timeout = provider.get('boot-timeout', 60)
|
||||||
p.use_neutron = bool(provider.get('networks', ()))
|
p.use_neutron = bool(provider.get('networks', ()))
|
||||||
if p.use_neutron:
|
p.nics = provider.get('networks')
|
||||||
p.nics = provider.get('networks')
|
|
||||||
p.images = {}
|
p.images = {}
|
||||||
for image in provider['images']:
|
for image in provider['images']:
|
||||||
i = ProviderImage()
|
i = ProviderImage()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user