summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kajinami <tkajinam@redhat.com>2022-11-01 15:27:24 +0900
committerTakashi Kajinami <tkajinam@redhat.com>2022-11-01 15:27:24 +0900
commitddbf9db52e7208a8e79b8656e4875251fe56be92 (patch)
treef8a16235118f3d678dab920d4b15613efabe06ab
parentf71308319ad528b1a009c27f64b96e452aa144e4 (diff)
downloadheat-ddbf9db52e7208a8e79b8656e4875251fe56be92.tar.gz
Set cache_ok to avoid further SAWarning
This change fixes the one remaining usage without the flag which was missed by the previous attempt[1]. [1] 14d2d859ef4eb3d21bf6e419a77c2f3185d5cf77 Change-Id: Ic0b34b11d669851e47cae670f5299f934f396257
-rw-r--r--heat/db/sqlalchemy/types.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/heat/db/sqlalchemy/types.py b/heat/db/sqlalchemy/types.py
index 4d4a213e5..d454024c6 100644
--- a/heat/db/sqlalchemy/types.py
+++ b/heat/db/sqlalchemy/types.py
@@ -34,6 +34,8 @@ class LongText(types.TypeDecorator):
class Json(LongText):
+ cache_ok = True
+
def process_bind_param(self, value, dialect):
return dumps(value)