From 1d52cd745590e3d2bf7fc83eab755bfda4fe5331 Mon Sep 17 00:00:00 2001 From: John L Chen Date: Mon, 9 May 2022 01:27:27 +0800 Subject: [PATCH] Fix incorrect "create" command in ZFSCli._create_snapshot() --- src/simplezfs/zfs_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simplezfs/zfs_cli.py b/src/simplezfs/zfs_cli.py index 911aa78..4a51ae6 100644 --- a/src/simplezfs/zfs_cli.py +++ b/src/simplezfs/zfs_cli.py @@ -291,7 +291,7 @@ def _create_snapshot(self, name: str, properties: Dict[str, str] = None, for metakey, metavalue in metadata_properties.items(): prop_args += ['-o', f'{metakey}={metavalue}'] - args = [self.__exe, 'create'] + args = [self.__exe, 'snapshot'] if recursive: args += ['-r']