summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nova/db/api.py21
1 files changed, 11 insertions, 10 deletions
diff --git a/nova/db/api.py b/nova/db/api.py
index 0c9f45db6..0ac3153bc 100644
--- a/nova/db/api.py
+++ b/nova/db/api.py
@@ -1292,6 +1292,17 @@ def instance_metadata_update_or_create(context, instance_id, metadata):
####################
+def agent_build_create(context, values):
+ """Create a new agent build entry."""
+ return IMPL.agent_build_create(context, values)
+
+
+def agent_build_get_by_triple(context, hypervisor, os, architecture):
+ """Get agent build by hypervisor/OS/architecture triple."""
+ return IMPL.agent_build_get_by_triple(context, hypervisor, os,
+ architecture)
+
+
def agent_build_get_all(context):
"""Get all agent builds."""
return IMPL.agent_build_get_all(context)
@@ -1307,16 +1318,6 @@ def agent_build_update(context, agent_build_id, values):
IMPL.agent_build_update(context, agent_build_id, values)
-def agent_build_create(context, values):
- """Create a new agent build entry."""
- return IMPL.agent_build_create(context, values)
-
-
-def agent_build_get_by_triple(context, hypervisor, os, architecture):
- """Get agent build by hypervisor/OS/architecture triple."""
- return IMPL.agent_build_get_by_triple(context, hypervisor, os,
- architecture)
-
####################