Skip to content

Commit

Permalink
Use truenas_api_client
Browse files Browse the repository at this point in the history
  • Loading branch information
themylogin committed Jun 3, 2024
1 parent ba0dccb commit 5b8d726
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions ixdiagnose/utils/formatter.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from middlewared.client.ejson import dumps as middleware_dumps, loads # noqa
from middlewared.utils import get
from typing import Callable, Dict, List, Union

from truenas_api_client.ejson import dumps as middleware_dumps, loads # noqa
from middlewared.utils import get


def dumps(*args, **kwargs) -> str:
kwargs.setdefault('indent', 4)
Expand Down
2 changes: 1 addition & 1 deletion ixdiagnose/utils/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from dataclasses import dataclass
from ixdiagnose.config import conf
from middlewared.client import Client
from truenas_api_client import Client
from typing import Any, Callable, List, Optional


Expand Down

0 comments on commit 5b8d726

Please sign in to comment.