Skip to content

Commit 7c1374b

Browse files
authored
Add read-only 'pod' property to Machine objects (#245)
This new property allows the client to know in which pod a virtual machine was commissioned (if any).
1 parent 1ff28d5 commit 7c1374b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

maas/client/viscera/machines.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ class Machine(Node, metaclass=MachineType):
373373
status_name = ObjectField.Checked("status_name", check(str), readonly=True)
374374
raids = ObjectFieldRelatedSet("raids", "Raids", reverse=None)
375375
volume_groups = ObjectFieldRelatedSet("volume_groups", "VolumeGroups", reverse=None)
376+
pod = ObjectFieldRelated("pod", "Pod", readonly=True)
376377

377378
async def save(self):
378379
"""Save the machine in MAAS."""

0 commit comments

Comments
 (0)