Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Fix Cerberus error
Browse files Browse the repository at this point in the history
Same error (and same fix) as was fixed in Pillar 7dc0cadc.
  • Loading branch information
sybrenstuvel committed Mar 19, 2020
1 parent ac9d065 commit 698fcef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flamenco/managers/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def patch_edit_from_web(self, manager_id: bson.ObjectId, patch: dict):
self.log.info('User %s edits Manager %s: %s', current_user_id(), manager_id, update)

validator = current_app.validator_for_resource('flamenco_managers')
if not validator.validate_update(update, manager_id):
if not validator.validate_update(update, manager_id, persisted_document={}):
resp = jsonify({
'_errors': validator.errors,
'_message': ', '.join(f'{field}: {error}'
Expand Down

0 comments on commit 698fcef

Please sign in to comment.