summaryrefslogtreecommitdiffstats
path: root/ogcp/views.py
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-05-13 10:07:52 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-05-13 10:07:52 +0200
commit7299b157d7a21f1c389daee75a78019f770d6368 (patch)
treed15bcbd4288fdce50cc066ccb6459e6f116414ad /ogcp/views.py
parent2b905ddcaf9ffcf66edb5a228f8626bc9ac7d78e (diff)
remove Format field from partition setup form
Remove the 'Format' field from the Partition and Format form as the default value will always be to format the partitions. This will lead to less portantial codepaths to maintain and support and less manual clicks in the web form.
Diffstat (limited to 'ogcp/views.py')
-rw-r--r--ogcp/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index c756ac9..431e9c1 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -671,7 +671,7 @@ def action_setup_modify():
'code': str(partition.part_type.data),
'filesystem': str(partition.fs.data),
'size': str(partition.size.data * 1024),
- 'format': str(int(partition.format_partition.data))}
+ 'format': '1'}
payload['partition_setup'].append(partition_setup)
if partition.part_type.data == 'CACHE':
@@ -684,7 +684,7 @@ def action_setup_modify():
'code': 'EMPTY',
'filesystem': 'EMPTY',
'size': '0',
- 'format': '0',
+ 'format': '1',
}
payload['partition_setup'].append(empty_part)