Fix cache partition creation

Partition & Format JSON cache fields always have the default values (no
cache) although users order to create a cache partition.

Set JSON cache fields with the values filled by the user.
multi-ogserver
Javier Sánchez Parra 2021-09-16 11:52:58 +02:00
parent da9b2ea9c2
commit f572643605
1 changed files with 3 additions and 0 deletions

View File

@ -311,6 +311,9 @@ def action_setup_modify():
payload['partition_setup'].append(partition_setup)
if partition.partition.data in required_partitions:
required_partitions.remove(partition.partition.data)
if partition.part_type.data == 'CACHE':
payload['cache'] = '1'
payload['cache_size'] = str(partition.size.data)
for partition in required_partitions:
empty_part = {