Skip to content

Commit

Permalink
Add default value to data parameter of Dataset.create
Browse files Browse the repository at this point in the history
  • Loading branch information
Defenso-QTH committed Sep 11, 2024
1 parent 6f0eaf1 commit 0c3e704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iocage_lib/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})

Expand Down

0 comments on commit 0c3e704

Please sign in to comment.