diff --git a/blasta/http/instance.py b/blasta/http/instance.py index 3267485..97cf56f 100644 --- a/blasta/http/instance.py +++ b/blasta/http/instance.py @@ -1367,7 +1367,7 @@ class HttpInstance: # TODO Add match/case for filetype. - entries = UtilitiesData.open_file_toml(content) + entries = UtilitiesData.load_data_toml(content) # entries_node = entries[node] #breakpoint() diff --git a/blasta/utilities/data.py b/blasta/utilities/data.py index d03ca61..773590c 100644 --- a/blasta/utilities/data.py +++ b/blasta/utilities/data.py @@ -127,6 +127,9 @@ class UtilitiesData: result = entries return result + def load_data_toml(data: dict) -> dict: + return tomllib.loads(data) + def open_file_toml(filename: str) -> dict: with open(filename, mode="rb") as fn: data = tomllib.load(fn)