mirror of https://git.48k.eu/ogcp
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
parent
da9b2ea9c2
commit
f572643605
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue