Update document for worker cleanup API

Update API document for API 'workers/cleanup',
also remove 'until' from allowed clean keys as
its value is always assigned in code.

Change-Id: Iea940d7c7e52718b8e5e8dcf706aa5d1126860ef
This commit is contained in:
TommyLike 2018-01-30 16:46:32 +08:00
parent cf56cdd4da
commit 934675eca7
3 changed files with 4 additions and 3 deletions

View File

@ -2,6 +2,7 @@
"cluster": "test",
"disabled": "True",
"host": "127.0.0.1",
"service_id": "1",
"is_up": "True",
"binary": "cinder-volume",
"resource_id": "b122f668-d15a-40f8-af21-38d218796ab8",

View File

@ -23,7 +23,8 @@ Request
.. rest_parameters:: parameters.yaml
- project_id: project_id_path
- cluster: cluster_mutex
- cluster_name: cluster_mutex
- service_id: service_id
- host: host_service
- binary: binary
- is-up: is_up

View File

@ -32,8 +32,7 @@ from cinder import utils
class WorkerController(wsgi.Controller):
allowed_clean_keys = {'service_id', 'cluster_name', 'host', 'binary',
'is_up', 'disabled', 'resource_id', 'resource_type',
'until'}
'is_up', 'disabled', 'resource_id', 'resource_type'}
def __init__(self, *args, **kwargs):
self.sch_api = sch_rpc.SchedulerAPI()