From 1c977670e24e7e5a55de48a2fce252f68fe3695e Mon Sep 17 00:00:00 2001 From: svalouch Date: Mon, 18 May 2020 09:52:14 +0200 Subject: [PATCH] zfs: dataset creation: fix error when iterating over metadata properties --- src/simplezfs/zfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simplezfs/zfs.py b/src/simplezfs/zfs.py index dcd699a..9938bf4 100644 --- a/src/simplezfs/zfs.py +++ b/src/simplezfs/zfs.py @@ -500,7 +500,7 @@ class ZFS: _metadata_properties = dict() # type: Dict[str, str] if metadata_properties is not None: - for k, v in metadata_properties: + for k, v in metadata_properties.items(): # if the name has no namespace, add the default one if set if ':' not in k: if not self._metadata_namespace: