![Anselme, Schubbert (sa246v)](/assets/img/avatar_default.png)
Signed-off-by: Anselme, Schubert (sa246v) <sa246v@att.com> Change-Id: I4b5a5f6a7e21d790cce13a5ccff9819f517cad64
14 lines
587 B
Diff
14 lines
587 B
Diff
diff --git a/src/maasserver/api/partitions.py b/src/maasserver/api/partitions.py
|
|
index 5a413fb3b..6a5ad8b47 100644
|
|
--- a/src/maasserver/api/partitions.py
|
|
+++ b/src/maasserver/api/partitions.py
|
|
@@ -99,7 +99,7 @@ class PartitionsHandler(OperationsHandler):
|
|
device = BlockDevice.objects.get_block_device_or_404(
|
|
system_id, device_id, request.user, NodePermission.view
|
|
)
|
|
- partition_table = device.partitiontable_set.get()
|
|
+ partition_table = device.get_partitiontable()
|
|
if partition_table is None:
|
|
return []
|
|
else:
|