Skip to content

Commit

Permalink
fix(python-client): fix get_state
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed Nov 15, 2022
1 parent b47c284 commit b4fd470
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions python-client/wmill/wmill/client.py
Expand Up @@ -161,17 +161,15 @@ def get_resource(path: str | None) -> Any:
if isinstance(parsed.value, Unset):
return {}

raw_dict = parsed.value
res = _transform_leaves(raw_dict)

return res
raw = parsed.value
return _transform_leaf(raw)


def get_state() -> Any:
"""
Get the state
"""
get_resource(None)
return get_resource(None)


def set_resource(value: Any, path: str | None, resource_type: str = "state") -> None:
Expand Down

0 comments on commit b4fd470

Please sign in to comment.