From 0c3e7040ca85a1ea646abd56f4ac2023d2b6c3a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quentin=20Th=C3=A9bault?= Date: Wed, 11 Sep 2024 11:01:26 +0900 Subject: [PATCH] Add default value to data parameter of Dataset.create --- iocage_lib/dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iocage_lib/dataset.py b/iocage_lib/dataset.py index ddd93b49..5020afd4 100644 --- a/iocage_lib/dataset.py +++ b/iocage_lib/dataset.py @@ -37,7 +37,7 @@ def __init__(self, *args, **kwargs): if self.cache: self._properties = deepcopy(cache.datasets.get(self.resource_name)) - def create(self, data): + def create(self, data={}): cache.reset() return create_dataset({'name': self.resource_name, **data})