Skip to content

Commit 2b3a58a

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libioc/Jail.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -763,14 +763,15 @@ def _start_dependant_jails(
763763
yield jailDependantsStartEvent.skip("No dependant jails")
764764
return
765765

766+
_sort = lambda x: x.config["priority"]
766767
dependant_jails = sorted(
767768
libioc.Jails.JailsGenerator(
768769
filters=_depends,
769770
host=self.host,
770771
logger=self.logger,
771772
zfs=self.zfs
772773
),
773-
key=lambda x: x.config["priority"]
774+
key=_sort
774775
)
775776

776777
for dependant_jail in dependant_jails:

0 commit comments

Comments
 (0)