Skip to content

Commit

Permalink
bug: Correct wrong specification for 'Create a new replication rule' r…
Browse files Browse the repository at this point in the history
…ucio#6515

This commit replaces the wrong specification for dids for 'Create a new
replication rule', it was previously specified as a list of strings. It is now
specified as a list of dictionaries containing two properties scope and name.
  • Loading branch information
GooseNight committed Apr 8, 2024
1 parent 7fedc87 commit f68ccca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rucio/client/ruleclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class RuleClient(BaseClient):

def add_replication_rule(
self,
dids: list[str],
dids: list[dict],
copies: int,
rse_expression: str,
priority: int = 3,
Expand Down
9 changes: 8 additions & 1 deletion lib/rucio/web/rest/flaskapi/v1/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,14 @@ def post(self):
description: The list of data identifiers.
type: array
items:
type: string
type: object
properties:
scope:
description: The scope of the data identifier
type: string
name:
description: The name of the data identifier
type: string
account:
description: The account of the issuer.
type: string
Expand Down

0 comments on commit f68ccca

Please sign in to comment.