diff options
| author | Ryan Lane <rlane@wikimedia.org> | 2011-01-20 00:47:33 +0000 |
|---|---|---|
| committer | Ryan Lane <rlane@wikimedia.org> | 2011-01-20 00:47:33 +0000 |
| commit | 4203bba809eec90dd8a176c2d4f8869ae748e8bc (patch) | |
| tree | cf63efaaa18ea962f82ce334294ee503d3ef132b /nova | |
| parent | 10bae7259abd6c663ff9513991f03c88555be1e6 (diff) | |
| download | nova-4203bba809eec90dd8a176c2d4f8869ae748e8bc.tar.gz nova-4203bba809eec90dd8a176c2d4f8869ae748e8bc.tar.xz nova-4203bba809eec90dd8a176c2d4f8869ae748e8bc.zip | |
Changing service_get_all_by_host to not require admin context as it is used for describing instances, which any user in a project can do.
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/db/sqlalchemy/api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/db/sqlalchemy/api.py b/nova/db/sqlalchemy/api.py index 7b965f672..9825764bf 100644 --- a/nova/db/sqlalchemy/api.py +++ b/nova/db/sqlalchemy/api.py @@ -156,7 +156,7 @@ def service_get_all_by_topic(context, topic): all() -@require_admin_context +@require_context def service_get_all_by_host(context, host): session = get_session() return session.query(models.Service).\ |
