diff options
Diffstat (limited to 'nova/policies/hosts.py')
-rw-r--r-- | nova/policies/hosts.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/nova/policies/hosts.py b/nova/policies/hosts.py index 64c36845bf..04b91a8641 100644 --- a/nova/policies/hosts.py +++ b/nova/policies/hosts.py @@ -38,7 +38,7 @@ DEPRECATED_POLICY = policy.DeprecatedRule( hosts_policies = [ policy.DocumentedRuleDefault( name=POLICY_NAME % 'list', - check_str=base.SYSTEM_READER, + check_str=base.ADMIN, description="""List physical hosts. This API is deprecated in favor of os-hypervisors and os-services.""", @@ -48,11 +48,11 @@ This API is deprecated in favor of os-hypervisors and os-services.""", 'path': '/os-hosts' }, ], - scope_types=['system'], + scope_types=['project'], deprecated_rule=DEPRECATED_POLICY), policy.DocumentedRuleDefault( name=POLICY_NAME % 'show', - check_str=base.SYSTEM_READER, + check_str=base.ADMIN, description="""Show physical host. This API is deprecated in favor of os-hypervisors and os-services.""", @@ -62,11 +62,11 @@ This API is deprecated in favor of os-hypervisors and os-services.""", 'path': '/os-hosts/{host_name}' } ], - scope_types=['system'], + scope_types=['project'], deprecated_rule=DEPRECATED_POLICY), policy.DocumentedRuleDefault( name=POLICY_NAME % 'update', - check_str=base.SYSTEM_ADMIN, + check_str=base.ADMIN, description="""Update physical host. This API is deprecated in favor of os-hypervisors and os-services.""", @@ -76,11 +76,11 @@ This API is deprecated in favor of os-hypervisors and os-services.""", 'path': '/os-hosts/{host_name}' }, ], - scope_types=['system'], + scope_types=['project'], deprecated_rule=DEPRECATED_POLICY), policy.DocumentedRuleDefault( name=POLICY_NAME % 'reboot', - check_str=base.SYSTEM_ADMIN, + check_str=base.ADMIN, description="""Reboot physical host. This API is deprecated in favor of os-hypervisors and os-services.""", @@ -90,11 +90,11 @@ This API is deprecated in favor of os-hypervisors and os-services.""", 'path': '/os-hosts/{host_name}/reboot' }, ], - scope_types=['system'], + scope_types=['project'], deprecated_rule=DEPRECATED_POLICY), policy.DocumentedRuleDefault( name=POLICY_NAME % 'shutdown', - check_str=base.SYSTEM_ADMIN, + check_str=base.ADMIN, description="""Shutdown physical host. This API is deprecated in favor of os-hypervisors and os-services.""", @@ -104,11 +104,11 @@ This API is deprecated in favor of os-hypervisors and os-services.""", 'path': '/os-hosts/{host_name}/shutdown' }, ], - scope_types=['system'], + scope_types=['project'], deprecated_rule=DEPRECATED_POLICY), policy.DocumentedRuleDefault( name=POLICY_NAME % 'start', - check_str=base.SYSTEM_ADMIN, + check_str=base.ADMIN, description="""Start physical host. This API is deprecated in favor of os-hypervisors and os-services.""", @@ -118,7 +118,7 @@ This API is deprecated in favor of os-hypervisors and os-services.""", 'path': '/os-hosts/{host_name}/startup' } ], - scope_types=['system'], + scope_types=['project'], deprecated_rule=DEPRECATED_POLICY), ] |