summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Erdfelt <johannes.erdfelt@rackspace.com>2011-06-09 22:06:09 +0000
committerJohannes Erdfelt <johannes.erdfelt@rackspace.com>2011-06-09 22:06:09 +0000
commit61f539dfd3f1f13a775ec837da5646ef16c270d7 (patch)
treed093eafa7684984944320d0187b0b300b7fbb0fa
parentfa0b64b500f3a196044459ba4bf8ed0dea214e92 (diff)
Add some docstrings for new agent build DB functions
-rw-r--r--nova/db/api.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/nova/db/api.py b/nova/db/api.py
index 30663662b..ff4339351 100644
--- a/nova/db/api.py
+++ b/nova/db/api.py
@@ -1253,20 +1253,25 @@ 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)
def agent_build_destroy(context, agent_update_id):
+ """Destroy agent build entry."""
IMPL.agent_build_destroy(context, agent_update_id)
def agent_build_update(context, agent_build_id, values):
+ """Update agent build entry."""
IMPL.agent_build_update(context, agent_build_id, values)