From f572643605f1337f9da8c451e2f79190b12bafa6 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Thu, 16 Sep 2021 11:52:58 +0200 Subject: 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. --- ogcp/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ogcp/views.py b/ogcp/views.py index 11e3693..1999644 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -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 = { -- cgit v1.2.3-18-g5258