Merge "Remove db layer hard-code permission checks for v2.1 agents"
This commit is contained in:
commit
3c9b26c8af
@ -4947,7 +4947,6 @@ def instance_system_metadata_update(context, instance_uuid, metadata, delete):
|
||||
####################
|
||||
|
||||
|
||||
@require_admin_context
|
||||
def agent_build_create(context, values):
|
||||
agent_build_ref = models.AgentBuild()
|
||||
agent_build_ref.update(values)
|
||||
@ -4959,7 +4958,6 @@ def agent_build_create(context, values):
|
||||
return agent_build_ref
|
||||
|
||||
|
||||
@require_admin_context
|
||||
def agent_build_get_by_triple(context, hypervisor, os, architecture):
|
||||
return model_query(context, models.AgentBuild, read_deleted="no").\
|
||||
filter_by(hypervisor=hypervisor).\
|
||||
@ -4968,7 +4966,6 @@ def agent_build_get_by_triple(context, hypervisor, os, architecture):
|
||||
first()
|
||||
|
||||
|
||||
@require_admin_context
|
||||
def agent_build_get_all(context, hypervisor=None):
|
||||
if hypervisor:
|
||||
return model_query(context, models.AgentBuild, read_deleted="no").\
|
||||
@ -4979,7 +4976,6 @@ def agent_build_get_all(context, hypervisor=None):
|
||||
all()
|
||||
|
||||
|
||||
@require_admin_context
|
||||
def agent_build_destroy(context, agent_build_id):
|
||||
rows_affected = model_query(context, models.AgentBuild).filter_by(
|
||||
id=agent_build_id).soft_delete()
|
||||
@ -4987,7 +4983,6 @@ def agent_build_destroy(context, agent_build_id):
|
||||
raise exception.AgentBuildNotFound(id=agent_build_id)
|
||||
|
||||
|
||||
@require_admin_context
|
||||
def agent_build_update(context, agent_build_id, values):
|
||||
rows_affected = model_query(context, models.AgentBuild).\
|
||||
filter_by(id=agent_build_id).\
|
||||
|
Loading…
Reference in New Issue
Block a user