Skip to content

Commit

Permalink
Merge pull request #2692 from dchristidis/patch-2691-Core__Allow_upda…
Browse files Browse the repository at this point in the history
…ting_the_purge_replicas_rule_option

Core: Allow updating the purge_replicas rule option #2691
  • Loading branch information
bari12 committed Jun 25, 2019
2 parents c095187 + 048a91b commit 0ae62f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rucio/core/rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
# - Joaquin Bogado <jbogado@linti.unlp.edu.ar>, 2014-2018
# - Thomas Beermann <thomas.beermann@cern.ch>, 2014-2015
# - Hannes Hansen <hannes.jakob.hansen@cern.ch>, 2018-2019
# - Dimitrios Christidis <dimitrios.christidis@cern.ch>, 2019
#
# PY3K COMPATIBLE

Expand Down Expand Up @@ -1196,7 +1197,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']
valid_options = ['locked', 'lifetime', 'account', 'state', 'activity', 'source_replica_expression', 'cancel_requests', 'priority', 'child_rule_id', 'eol_at', 'meta', 'purge_replicas']

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

0 comments on commit 0ae62f2

Please sign in to comment.