fix template expressions for tablespaces

This commit is contained in:
Sarah Hoffmann
2021-10-15 15:07:43 +02:00
parent 75c631f080
commit 552fb16cb2
3 changed files with 21 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ def _setup_tablespace_sql(config):
tspace = getattr(config, 'TABLESPACE_{}_{}'.format(subset, kind))
if tspace:
tspace = 'TABLESPACE "{}"'.format(tspace)
out['{}_{}'.format(subset.lower, kind.lower())] = tspace
out['{}_{}'.format(subset.lower(), kind.lower())] = tspace
return out