diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-01-20 08:06:58 +0100 |
---|---|---|
committer | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-01-20 09:25:18 +0100 |
commit | e11125ef9e579895d38c5d377ddc87f7885b4a3c (patch) | |
tree | f80611a6346a3425801e7229e6adb08cab2125ce /ogcp | |
parent | 302a776c5fd7be3ecd79b02f642f4e8dbee41a3b (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')
-rw-r--r-- | ogcp/forms/action_forms.py | 2 | ||||
-rw-r--r-- | ogcp/views.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py index 44a898f..09197d5 100644 --- a/ogcp/forms/action_forms.py +++ b/ogcp/forms/action_forms.py @@ -61,7 +61,7 @@ class SetupForm(FlaskForm): ips = HiddenField() disk = HiddenField() disk_type = SelectField(label=_l('Type'), - choices=[('MSDOS', 'MSDOS'), + choices=[('MSDOS', 'MBR'), ('GPT', 'GPT')]) partitions = FieldList(FormField(PartitionForm), min_entries=1, 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: |