Skip to content

Commit

Permalink
Add read-only 'pod' property to Machine objects (#245)
Browse files Browse the repository at this point in the history
This new property allows the client to know in which pod a virtual
machine was commissioned (if any).
  • Loading branch information
ittner authored Aug 21, 2023
1 parent 1ff28d5 commit 7c1374b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions maas/client/viscera/machines.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ class Machine(Node, metaclass=MachineType):
status_name = ObjectField.Checked("status_name", check(str), readonly=True)
raids = ObjectFieldRelatedSet("raids", "Raids", reverse=None)
volume_groups = ObjectFieldRelatedSet("volume_groups", "VolumeGroups", reverse=None)
pod = ObjectFieldRelated("pod", "Pod", readonly=True)

async def save(self):
"""Save the machine in MAAS."""
Expand Down

0 comments on commit 7c1374b

Please sign in to comment.