Add description to policies in deferred_delete.py

Change-Id: I4b6d3d9ee760441cf8732837dbc1730a57262e27
blueprint: policy-docs
This commit is contained in:
Sujitha 2017-03-22 16:55:46 +00:00
parent 3ee4b0cf0e
commit 68ab7a1b8c

View File

@ -26,9 +26,21 @@ deferred_delete_policies = [
policy.RuleDefault( policy.RuleDefault(
name=POLICY_ROOT % 'discoverable', name=POLICY_ROOT % 'discoverable',
check_str=base.RULE_ANY), check_str=base.RULE_ANY),
policy.RuleDefault( base.create_rule_default(
name=BASE_POLICY_NAME, BASE_POLICY_NAME,
check_str=base.RULE_ADMIN_OR_OWNER), base.RULE_ADMIN_OR_OWNER,
'Restore a soft deleted server or force delete a server before \
deferred cleanup',
[
{
'method': 'POST',
'path': '/servers/{server_id}/action (restore)'
},
{
'method': 'POST',
'path': '/servers/{server_id}/action (forceDelete)'
}
])
] ]