From d3199fa0adbf3c9e5e5b151a01fbc48e489fd80f Mon Sep 17 00:00:00 2001 From: Natan Keddem Date: Mon, 13 Nov 2023 22:13:28 -0500 Subject: [PATCH] remove notify from zfs queries --- bale/interfaces/zfs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bale/interfaces/zfs.py b/bale/interfaces/zfs.py index 47c7a7d..851ae69 100644 --- a/bale/interfaces/zfs.py +++ b/bale/interfaces/zfs.py @@ -139,7 +139,7 @@ class Zfs: else: with_holds = [snapshot] if len(with_holds) > 0: - result = await self.execute(f"zfs holds -H -r {with_holds}") + result = await self.execute(f"zfs holds -H -r {with_holds}", notify=False) tags: Dict[str, list[str]] = {} for line in result.stdout_lines: matches = re.match("^(?P[^@]+)@(?P[^\t]+)\t(?P[^\t]+)\t(?P[^\n]+)", line) @@ -191,7 +191,7 @@ class Zfs: async def filesystems(self) -> Result: query = "filesystems" if self.is_query_ready_to_execute(query, 60): - result = await self.execute("zfs list -Hp -t filesystem -o name,used,avail,refer,mountpoint") + result = await self.execute("zfs list -Hp -t filesystem -o name,used,avail,refer,mountpoint", notify=False) filesystems = dict() for line in result.stdout_lines: matches = re.match( @@ -213,7 +213,7 @@ class Zfs: async def snapshots(self) -> Result: query = "snapshots" if self.is_query_ready_to_execute(query, 60): - result = await self.execute("zfs list -Hp -t snapshot -o name,used,creation,userrefs") + result = await self.execute("zfs list -Hp -t snapshot -o name,used,creation,userrefs", notify=False) snapshots = dict() for line in result.stdout_lines: matches = re.match("^(?P[^@]+)@(?P[^\t]+)\t(?P[^\t]+)\t(?P[^\t]+)\t(?P[^\n]+)", line)