summaryrefslogtreecommitdiffstats
path: root/ogcp/views.py
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2021-09-16 11:52:58 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2021-09-16 11:57:59 +0200
commitf572643605f1337f9da8c451e2f79190b12bafa6 (patch)
treeaaace99aed4e912df3f1db89df080a7a0e02bd36 /ogcp/views.py
parentda9b2ea9c2ef37eb191ba0a9e78e62ce942dc912 (diff)
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.
Diffstat (limited to 'ogcp/views.py')
-rw-r--r--ogcp/views.py3
1 files changed, 3 insertions, 0 deletions
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 = {