Skip to content

Commit

Permalink
Fix bug 901899
Browse files Browse the repository at this point in the history
If project_id is given when a network is created, it has to be saved in
the database.

Change-Id: I59a05f55202484cfe7910e159d80cd4b5f51dffa
  • Loading branch information
fcharlier committed Jan 4, 2012
1 parent 88ccade commit 52de7e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nova/network/manager.py
Expand Up @@ -989,6 +989,8 @@ def find_next(subnet):
net['dns1'] = dns1
net['dns2'] = dns2

net['project_id'] = kwargs.get('project_id')

if num_networks > 1:
net['label'] = '%s_%d' % (label, index)
else:
Expand Down

0 comments on commit 52de7e6

Please sign in to comment.