"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/identity/backends/sql_model.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).

sql_model.py  (keystone-15.0.0):sql_model.py  (keystone-15.0.1)
skipping to change at line 244 skipping to change at line 244
support update_user and unit tests where password_expires_at support update_user and unit tests where password_expires_at
inadvertently gets added by calling to_dict followed by from_dict. inadvertently gets added by calling to_dict followed by from_dict.
:param user_dict: User entity dictionary :param user_dict: User entity dictionary
:returns User: User object :returns User: User object
""" """
new_dict = user_dict.copy() new_dict = user_dict.copy()
resource_options = {} resource_options = {}
options = new_dict.pop('options', {}) options = new_dict.pop('options', {})
password_expires_at_key = 'password_expires_at' password_expires_at_key = 'password_expires_at' # nosec
if password_expires_at_key in user_dict: if password_expires_at_key in user_dict:
del new_dict[password_expires_at_key] del new_dict[password_expires_at_key]
for opt in cls.resource_options_registry.options: for opt in cls.resource_options_registry.options:
if opt.option_name in options: if opt.option_name in options:
opt_value = options[opt.option_name] opt_value = options[opt.option_name]
# NOTE(notmorgan): None is always a valid type # NOTE(notmorgan): None is always a valid type
if opt_value is not None: if opt_value is not None:
opt.validator(opt_value) opt.validator(opt_value)
resource_options[opt.option_id] = opt_value resource_options[opt.option_id] = opt_value
user_obj = super(User, cls).from_dict(new_dict) user_obj = super(User, cls).from_dict(new_dict)
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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