Commit c8d9e13c authored by Christos Stavrakakis's avatar Christos Stavrakakis

Fix variable scope bug in process_net_status

parent 743b4fd9
......@@ -135,8 +135,8 @@ def process_net_status(vm, etime, nics):
for nic in ganeti_nics:
ipv4 = nic.get('ipv4', '')
net = nic['network']
if ipv4:
net = nic['network']
net.reserve_address(ipv4)
nic['dirty'] = False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment