Skip to content

Commit

Permalink
ADCM-6138: Implement Bundle object
Browse files Browse the repository at this point in the history
  • Loading branch information
Starovoitov committed Nov 29, 2024
1 parent 1c55378 commit afe0762
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions adcm_aio_client/core/objects/cm.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,8 @@ def signature_status(self: Self) -> Literal["invalid", "valid", "absent"]:
def _type(self: Self) -> Literal["cluster", "provider"]:
return self._data["mainPrototype"]["type"]

@async_cached_property
async def license(self: Self) -> License:
response = await self._requester.get(*self.get_own_path())
return self._construct(what=License, from_data=response.as_dict()["mainPrototype"]["license"])
def license(self: Self) -> License:
return self._construct(what=License, from_data=self._data["mainPrototype"]["license"])

def get_own_path(self: Self) -> Endpoint:
return self.PATH_PREFIX, self.id
Expand Down

0 comments on commit afe0762

Please sign in to comment.