"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/api/credentials.py" between
keystone-17.0.0.tar.gz and keystone-18.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 "Victoria" series (latest release).

credentials.py  (keystone-17.0.0):credentials.py  (keystone-18.0.0)
skipping to change at line 177 skipping to change at line 177
ref['id'], ref, initiator=self.audit_initiator) ref['id'], ref, initiator=self.audit_initiator)
return self.wrap_member(ref), http.client.CREATED return self.wrap_member(ref), http.client.CREATED
def _validate_blob_update_keys(self, credential, ref): def _validate_blob_update_keys(self, credential, ref):
if credential.get('type', '').lower() == 'ec2': if credential.get('type', '').lower() == 'ec2':
new_blob = self._validate_blob_json(ref) new_blob = self._validate_blob_json(ref)
old_blob = credential.get('blob') old_blob = credential.get('blob')
if isinstance(old_blob, str): if isinstance(old_blob, str):
old_blob = jsonutils.loads(old_blob) old_blob = jsonutils.loads(old_blob)
# if there was a scope set, prevent changing it or unsetting it # if there was a scope set, prevent changing it or unsetting it
for key in ['trust_id', 'app_cred_id', 'access_token_id']: for key in ['trust_id', 'app_cred_id', 'access_token_id',
'access_id']:
if old_blob.get(key) != new_blob.get(key): if old_blob.get(key) != new_blob.get(key):
message = _('%s can not be updated for credential') % key message = _('%s can not be updated for credential') % key
raise exception.ValidationError(message=message) raise exception.ValidationError(message=message)
def patch(self, credential_id): def patch(self, credential_id):
# Update Credential # Update Credential
ENFORCER.enforce_call( ENFORCER.enforce_call(
action='identity:update_credential', action='identity:update_credential',
build_target=_build_target_enforcement build_target=_build_target_enforcement
) )
 End of changes. 1 change blocks. 
1 lines changed or deleted 2 lines changed or added

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