Skip to content

Commit

Permalink
Rules: Upadating Comments in Rules Fix rucio#4116
Browse files Browse the repository at this point in the history
  • Loading branch information
DhruvSondhi committed Mar 24, 2021
1 parent 8a17c39 commit c1225fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rucio/core/rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ def update_rule(rule_id, options, session=None):
:raises: RuleNotFound if no Rule can be found, InputValidationError if invalid option is used, ScratchDiskLifetimeConflict if wrong ScratchDiskLifetime is used.
"""

valid_options = ['locked', 'lifetime', 'account', 'state', 'activity', 'source_replica_expression', 'cancel_requests', 'priority', 'child_rule_id', 'eol_at', 'meta', 'purge_replicas']
valid_options = ['locked', 'lifetime', 'account', 'state', 'activity', 'source_replica_expression', 'cancel_requests', 'priority', 'child_rule_id', 'eol_at', 'meta', 'purge_replicas', 'comments']

for key in options:
if key not in valid_options:
Expand Down

0 comments on commit c1225fc

Please sign in to comment.