Fix cluster resource in cluster service
The 'parent' property has been masked out from service side for a long time, exposing this to users is only causing confusing. This patch removes the 'parent' property from the Cluster resource. Change-Id: Icc69ff41a8cbebd664db138d7a0bc6430994d81f
This commit is contained in:
@@ -43,8 +43,6 @@ class Cluster(resource.Resource):
|
|||||||
project_id = resource.Body('project')
|
project_id = resource.Body('project')
|
||||||
#: The domain ID of the cluster owner.
|
#: The domain ID of the cluster owner.
|
||||||
domain_id = resource.Body('domain')
|
domain_id = resource.Body('domain')
|
||||||
#: The ID of the parent cluster (if any).
|
|
||||||
parent_id = resource.Body('parent')
|
|
||||||
#: Timestamp of when the cluster was initialized.
|
#: Timestamp of when the cluster was initialized.
|
||||||
#: *Type: datetime object parsed from ISO 8601 formatted string*
|
#: *Type: datetime object parsed from ISO 8601 formatted string*
|
||||||
init_at = resource.Body('init_at')
|
init_at = resource.Body('init_at')
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ FAKE = {
|
|||||||
'max_size': 3,
|
'max_size': 3,
|
||||||
'min_size': 0,
|
'min_size': 0,
|
||||||
'name': FAKE_NAME,
|
'name': FAKE_NAME,
|
||||||
'parent': None,
|
|
||||||
'profile_id': 'myserver',
|
'profile_id': 'myserver',
|
||||||
'metadata': {},
|
'metadata': {},
|
||||||
'timeout': None,
|
'timeout': None,
|
||||||
@@ -50,7 +49,6 @@ FAKE_CREATE_RESP = {
|
|||||||
'min_size': 0,
|
'min_size': 0,
|
||||||
'name': 'test_cluster',
|
'name': 'test_cluster',
|
||||||
'nodes': [],
|
'nodes': [],
|
||||||
'parent': None,
|
|
||||||
'policies': [],
|
'policies': [],
|
||||||
'profile_id': '560a8f9d-7596-4a32-85e8-03645fa7be13',
|
'profile_id': '560a8f9d-7596-4a32-85e8-03645fa7be13',
|
||||||
'profile_name': 'myserver',
|
'profile_name': 'myserver',
|
||||||
|
|||||||
Reference in New Issue
Block a user