summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-20 21:59:09 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-20 21:59:09 +0100
commitb9d5341b057f32f79058ac4e7a3a0912179d7931 (patch)
tree99b58853f433445e409b47650370b6f9bfba5c2a /modules
parentb90636ad75638254335c7a60d3d9956ddd46efe9 (diff)
downloadnixos-b9d5341b057f32f79058ac4e7a3a0912179d7931.tar
nixos-b9d5341b057f32f79058ac4e7a3a0912179d7931.tar.gz
nixos-b9d5341b057f32f79058ac4e7a3a0912179d7931.tar.bz2
nixos-b9d5341b057f32f79058ac4e7a3a0912179d7931.tar.xz
nixos-b9d5341b057f32f79058ac4e7a3a0912179d7931.zip
zfssnap: ...
Diffstat (limited to 'modules')
-rw-r--r--modules/zfssnap/zfssnap.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/zfssnap/zfssnap.py b/modules/zfssnap/zfssnap.py
index f82810b9..d524f5db 100644
--- a/modules/zfssnap/zfssnap.py
+++ b/modules/zfssnap/zfssnap.py
@@ -261,7 +261,9 @@ def autosnap():
261 if not tasks: 261 if not tasks:
262 logger.warning('No snapshots to create') 262 logger.warning('No snapshots to create')
263 else: 263 else:
264 asyncio.run(await asyncio.gather(*tasks)) 264 async def run_tasks():
265 await asyncio.gather(*tasks)
266 asyncio.run(run_tasks())
265 for snap in all_snap_names: 267 for snap in all_snap_names:
266 logger.info(f'Created ‘{snap}’') 268 logger.info(f'Created ‘{snap}’')
267 if all_snap_names: 269 if all_snap_names: