Skip to content

Commit

Permalink
ADCM-6334 Added config node for Host (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sealwing authored and a-alferov committed Feb 17, 2025
1 parent bc3c950 commit 7400521
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion adcm_aio_client/objects/_cm.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ async def create(self: Self, bundle: Bundle, name: str, description: str = "") -
return HostProvider(requester=self._requester, data=response.as_dict())


class Host(Deletable, WithActions, WithStatus, WithMaintenanceMode, RootInteractiveObject):
class Host(Deletable, WithActions, WithConfig, WithStatus, WithMaintenanceMode, RootInteractiveObject):
PATH_PREFIX = "hosts"

@property
Expand Down
2 changes: 2 additions & 0 deletions tests/integration/test_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ async def _test_host_properties(host: Host, expected: Expected) -> None:
assert await host.get_status() == expected.status
assert (await host.hostprovider).id == expected.provider_id
assert (await host.maintenance_mode).value == expected.maintenance_mode
# ADCM-6334 bug
assert await host.config


async def _test_host_accessors(
Expand Down

0 comments on commit 7400521

Please sign in to comment.