Skip to content

Commit

Permalink
chore: alias lambda function to prevent T484
Browse files Browse the repository at this point in the history
  • Loading branch information
gronke committed Jun 23, 2021
1 parent 4dc6ba0 commit 4f975d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libioc/Jail.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,14 +763,17 @@ def _start_dependant_jails(
yield jailDependantsStartEvent.skip("No dependant jails")
return

def _sort(x: typing.Dict[str, typing.Any]):
return x.config["priority"]

dependant_jails = sorted(
libioc.Jails.JailsGenerator(
filters=_depends,
host=self.host,
logger=self.logger,
zfs=self.zfs
),
key=lambda x: x.config["priority"]
key=_sort
)

for dependant_jail in dependant_jails:
Expand Down

0 comments on commit 4f975d8

Please sign in to comment.