"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/cmd/bootstrap.py" between
keystone-15.0.0.tar.gz and keystone-15.0.1.tar.gz

About: OpenStack Keystone (Core Service: Identity) provides an authentication and authorization service for other OpenStack services. Provides a catalog of endpoints for all OpenStack services.
The "Stein" series (maintained release).

bootstrap.py  (keystone-15.0.0):bootstrap.py  (keystone-15.0.1)
skipping to change at line 126 skipping to change at line 126
role = PROVIDERS.role_api.create_role(role_id, role) role = PROVIDERS.role_api.create_role(role_id, role)
LOG.info('Created role %s', role_name) LOG.info('Created role %s', role_name)
return role return role
except exception.Conflict: except exception.Conflict:
LOG.info('Role %s exists, skipping creation.', role_name) LOG.info('Role %s exists, skipping creation.', role_name)
# NOTE(davechen): There is no backend method to get the role # NOTE(davechen): There is no backend method to get the role
# by name, so build the hints to list the roles and filter by # by name, so build the hints to list the roles and filter by
# name instead. # name instead.
hints = driver_hints.Hints() hints = driver_hints.Hints()
hints.add_filter('name', role_name) hints.add_filter('name', role_name)
# Only return global roles, domain-specific roles can't be used in
# system assignments and bootstrap isn't designed to work with
# domain-specific roles.
hints.add_filter('domain_id', None)
# NOTE(lbragstad): Global roles are unique based on name. At this
# point we should be safe to return the first, and only, element in
# the list.
return PROVIDERS.role_api.list_roles(hints)[0] return PROVIDERS.role_api.list_roles(hints)[0]
def _ensure_implied_role(self, prior_role_id, implied_role_id): def _ensure_implied_role(self, prior_role_id, implied_role_id):
try: try:
PROVIDERS.role_api.create_implied_role(prior_role_id, PROVIDERS.role_api.create_implied_role(prior_role_id,
implied_role_id) implied_role_id)
LOG.info( LOG.info(
'Created implied role where %s implies %s', 'Created implied role where %s implies %s',
prior_role_id, prior_role_id,
implied_role_id implied_role_id
 End of changes. 1 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)