Skip to content

Commit 4f975d8

Browse files
committed
chore: alias lambda function to prevent T484
1 parent 4dc6ba0 commit 4f975d8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libioc/Jail.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,14 +763,17 @@ def _start_dependant_jails(
763763
yield jailDependantsStartEvent.skip("No dependant jails")
764764
return
765765

766+
def _sort(x: typing.Dict[str, typing.Any]):
767+
return x.config["priority"]
768+
766769
dependant_jails = sorted(
767770
libioc.Jails.JailsGenerator(
768771
filters=_depends,
769772
host=self.host,
770773
logger=self.logger,
771774
zfs=self.zfs
772775
),
773-
key=lambda x: x.config["priority"]
776+
key=_sort
774777
)
775778

776779
for dependant_jail in dependant_jails:

0 commit comments

Comments
 (0)