Allows update of domain for keystone project and group
Enables the update of domain for keystone project and group incase other fields are not provided Implements blueprint keystone-resources Change-Id: I7a666e6ba9b075734fccad8fba02254b79774149
This commit is contained in:
parent
cd3321b3f6
commit
556a596ad0
@ -57,6 +57,7 @@ class KeystoneGroup(role_assignments.KeystoneRoleAssignment):
|
||||
roles:
|
||||
- role: {get_param: group_role}
|
||||
domain: {get_param: group_role_domain}
|
||||
- role: {get_param: group_role}
|
||||
project: {get_param: group_role_project}
|
||||
'''
|
||||
|
||||
@ -121,9 +122,6 @@ class KeystoneGroup(role_assignments.KeystoneRoleAssignment):
|
||||
if new_description is not None:
|
||||
values['description'] = new_description
|
||||
|
||||
if len(values) == 0:
|
||||
return
|
||||
|
||||
values['group'] = group_id
|
||||
domain = (self.client_plugin('keystone').
|
||||
get_domain_id(domain))
|
||||
|
@ -120,9 +120,6 @@ class KeystoneProject(resource.Resource):
|
||||
if enabled is not None:
|
||||
values['enabled'] = enabled
|
||||
|
||||
if len(values) == 0:
|
||||
return
|
||||
|
||||
values['project'] = project_id
|
||||
domain = (self.client_plugin('keystone').
|
||||
get_domain_id(domain))
|
||||
|
Loading…
Reference in New Issue
Block a user