bundles/postgresql: fix database creation

This commit is contained in:
Franzi 2020-04-04 18:28:38 +02:00
parent 1dfa5c457c
commit 78bae4f77b
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -1,5 +1,5 @@
postgres_roles = {}
postgres_db = {}
postgres_dbs = {}
for user, config in node.metadata['postgresql']['users'].items():
postgres_roles[user] = {
@ -7,9 +7,6 @@ for user, config in node.metadata['postgresql']['users'].items():
}
for database, config in node.metadata['postgresql']['databases'].items():
postgres_db[database] = {
postgres_dbs[database] = {
'owner': config['owner'],
'needs': {
'postgres_role:{}'.format(config['owner']),
},
}