summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2010-12-21 18:48:07 +0000
committerVishvananda Ishaya <vishvananda@gmail.com>2010-12-21 18:48:07 +0000
commit902db577ea19459c9b01ed7b262024b900440573 (patch)
tree127faf2bcfe5f060bebe6f950a6ca5e996fa529b
parenta17fa6df76a3215d84d99738a1a7752a54cfe914 (diff)
update db/api.py as well
-rw-r--r--nova/db/api.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/nova/db/api.py b/nova/db/api.py
index 339e0a3ae..69cfa3377 100644
--- a/nova/db/api.py
+++ b/nova/db/api.py
@@ -512,12 +512,14 @@ def network_update(context, network_id, values):
###################
-def project_get_network(context, project_id):
+def project_get_network(context, project_id, associate=True):
"""Return the network associated with the project.
- Raises NotFound if no such network can be found.
+ If associate is true, it will attempt to associate a new
+ network if one is not found, otherwise it returns None.
"""
+
return IMPL.project_get_network(context, project_id)