"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/resource/backends/sql.py" between
keystone-16.0.1.tar.gz and keystone-17.0.0.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 "Ussuri" series (latest release).

sql.py  (keystone-16.0.1):sql.py  (keystone-17.0.0)
skipping to change at line 27 skipping to change at line 27
from keystone.common import driver_hints from keystone.common import driver_hints
from keystone.common import resource_options from keystone.common import resource_options
from keystone.common import sql from keystone.common import sql
from keystone import exception from keystone import exception
from keystone.resource.backends import base from keystone.resource.backends import base
from keystone.resource.backends import sql_model from keystone.resource.backends import sql_model
LOG = log.getLogger(__name__) LOG = log.getLogger(__name__)
class Resource(base.ResourceDriverBase): class Resource(base.ResourceDriverBase):
# TODO(morgan): Merge all of this code into the manager, Resource backend
# is only SQL. There is no configurable driver.
def _encode_domain_id(self, ref): def _encode_domain_id(self, ref):
if 'domain_id' in ref and ref['domain_id'] is None: if 'domain_id' in ref and ref['domain_id'] is None:
new_ref = ref.copy() new_ref = ref.copy()
new_ref['domain_id'] = base.NULL_DOMAIN_ID new_ref['domain_id'] = base.NULL_DOMAIN_ID
return new_ref return new_ref
else: else:
return ref return ref
def _is_hidden_ref(self, ref): def _is_hidden_ref(self, ref):
 End of changes. 1 change blocks. 
2 lines changed or deleted 0 lines changed or added

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