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:
Kanagaraj Manickam 2015-03-16 10:51:37 +05:30
parent cd3321b3f6
commit 556a596ad0
2 changed files with 1 additions and 6 deletions

View File

@ -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))

View File

@ -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))