summaryrefslogtreecommitdiffstats
path: root/nova/db/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/db/api.py')
-rw-r--r--nova/db/api.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/nova/db/api.py b/nova/db/api.py
index 025a5848f..e0d150506 100644
--- a/nova/db/api.py
+++ b/nova/db/api.py
@@ -1784,7 +1784,7 @@ def sm_flavor_create(context, values):
def sm_flavor_update(context, sm_flavor_id, values):
"""Update a SM Flavor entry."""
- return IMPL.sm_flavor_update(context, values)
+ return IMPL.sm_flavor_update(context, sm_flavor_id, values)
def sm_flavor_delete(context, sm_flavor_id):
@@ -1792,9 +1792,9 @@ def sm_flavor_delete(context, sm_flavor_id):
return IMPL.sm_flavor_delete(context, sm_flavor_id)
-def sm_flavor_get(context, sm_flavor):
+def sm_flavor_get(context, sm_flavor_id):
"""Get a specific SM Flavor."""
- return IMPL.sm_flavor_get(context, sm_flavor)
+ return IMPL.sm_flavor_get(context, sm_flavor_id)
def sm_flavor_get_all(context):
@@ -1802,6 +1802,11 @@ def sm_flavor_get_all(context):
return IMPL.sm_flavor_get_all(context)
+def sm_flavor_get_by_label(context, sm_flavor_label):
+ """Get a specific SM Flavor given label."""
+ return IMPL.sm_flavor_get_by_label(context, sm_flavor_label)
+
+
####################