"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/assignment/role_backends/base.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).

base.py  (keystone-16.0.1):base.py  (keystone-17.0.0)
skipping to change at line 17 skipping to change at line 17
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import abc import abc
import six
import keystone.conf import keystone.conf
from keystone import exception from keystone import exception
# NOTE(henry-nash): From the manager and above perspective, the domain_id # NOTE(henry-nash): From the manager and above perspective, the domain_id
# attribute of a role is nullable. However, to ensure uniqueness in # attribute of a role is nullable. However, to ensure uniqueness in
# multi-process configurations, it is better to still use a sql uniqueness # multi-process configurations, it is better to still use a sql uniqueness
# constraint. Since the support for a nullable component of a uniqueness # constraint. Since the support for a nullable component of a uniqueness
# constraint across different sql databases is mixed, we instead store a # constraint across different sql databases is mixed, we instead store a
# special value to represent null, as defined in NULL_DOMAIN_ID below. # special value to represent null, as defined in NULL_DOMAIN_ID below.
NULL_DOMAIN_ID = '<<null>>' NULL_DOMAIN_ID = '<<null>>'
CONF = keystone.conf.CONF CONF = keystone.conf.CONF
@six.add_metaclass(abc.ABCMeta) class RoleDriverBase(object, metaclass=abc.ABCMeta):
class RoleDriverBase(object):
def _get_list_limit(self): def _get_list_limit(self):
return CONF.role.list_limit or CONF.list_limit return CONF.role.list_limit or CONF.list_limit
@abc.abstractmethod @abc.abstractmethod
def create_role(self, role_id, role): def create_role(self, role_id, role):
"""Create a new role. """Create a new role.
:raises keystone.exception.Conflict: If a duplicate role exists. :raises keystone.exception.Conflict: If a duplicate role exists.
 End of changes. 2 change blocks. 
4 lines changed or deleted 1 lines changed or added

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