Skip to content

Commit

Permalink
Merge pull request #29 from Defenso-QTH/fix-fetch
Browse files Browse the repository at this point in the history
Add default value to data parameter of Dataset.create
  • Loading branch information
dgeo authored Sep 11, 2024
2 parents 6f0eaf1 + 0c3e704 commit 30b4856
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 30b4856

Please sign in to comment.