summaryrefslogtreecommitdiffstats
path: root/ogcp/views.py
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-01-20 08:06:58 +0100
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-01-20 09:25:18 +0100
commite11125ef9e579895d38c5d377ddc87f7885b4a3c (patch)
treef80611a6346a3425801e7229e6adb08cab2125ce /ogcp/views.py
parent302a776c5fd7be3ecd79b02f642f4e8dbee41a3b (diff)
Rename MSDOS to MBR
This commit rename partition table type MSDOS to MBR in the front-end. At the back-end ogCP still uses MSDOS string because ogClient scripts (aka cloning engine) expects it.
Diffstat (limited to 'ogcp/views.py')
-rw-r--r--ogcp/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index 61e146b..de92430 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -581,6 +581,8 @@ def action_client_info():
images = r.json()['images']
setup = get_client_setup(ips)
+ if setup and setup[0].get('code') == 'MSDOS':
+ setup[0]['code'] = 'MBR'
for entry in setup:
if images and entry['image'] != 0: