Skip to content

Commit 6461d55

Browse files
jamesp-epccbari12
authored andcommitted
Mention that SUPPORTED_VERSION field in policy packages can be a list
1 parent 5196599 commit 6461d55

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/operator/policy_packages.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,15 @@ if action not in perm:
5959
```
6060

6161
`__init__.py` should include a
62-
`SUPPORTED_VERSION` field indicating the major version of Rucio
63-
that your package was developed against. This is checked by Rucio in
64-
the event that the policy package interface changes in the future.
62+
`SUPPORTED_VERSION` field indicating the major version(s) of Rucio
63+
that your package supports. This is checked against the Rucio server
64+
version to ensure compatibility when loading the policy package. This
65+
field can be a string if the policy package only supports a single
66+
Rucio version, or a list of strings if it supports multiple versions.
6567
Example:
6668

6769
```python
68-
SUPPORTED_VERSION = "1.30"
70+
SUPPORTED_VERSION = [ "1.30", "1.31", "32" ]
6971
```
7072

7173
It can also contain an optional function called `get_algorithms` that

0 commit comments

Comments
 (0)