Skip to content

Commit

Permalink
fix middleware call
Browse files Browse the repository at this point in the history
  • Loading branch information
creatorcary committed Aug 7, 2024
1 parent 9921a20 commit 85c6a26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewared/middlewared/alert/source/snapshot_count.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async def _check_smb(self) -> list[Alert]:
"""Return an `Alert` for every dataset shared over smb whose number of snapshots exceeds the limit."""
max_ = await self.middleware.call("pool.snapshottask.max_count")
datasets = await self.middleware.call("zfs.snapshot.count")
smb_shares = self.middleware.call("sharing.smb.query")
smb_shares = await self.middleware.call("sharing.smb.query")
smb_paths = [share["path"].removeprefix("/mnt/") for share in smb_shares]
to_alert = list()

Expand Down

0 comments on commit 85c6a26

Please sign in to comment.