diff options
| author | Lorin Hochstein <lorin@isi.edu> | 2011-06-22 23:38:58 -0400 |
|---|---|---|
| committer | Lorin Hochstein <lorin@isi.edu> | 2011-06-22 23:38:58 -0400 |
| commit | 2e2c432e35bf9c283df83de8d76191855d2ce2be (patch) | |
| tree | b9685fd01c984fe75a6494f48a648d771d8a3ff0 | |
| parent | df44068a801aba373e8896bba235f2abca4e4c8a (diff) | |
| download | nova-2e2c432e35bf9c283df83de8d76191855d2ce2be.tar.gz nova-2e2c432e35bf9c283df83de8d76191855d2ce2be.tar.xz nova-2e2c432e35bf9c283df83de8d76191855d2ce2be.zip | |
Returned code to original location
| -rw-r--r-- | nova/db/api.py | 21 |
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) - #################### |
