Skip to content
Snippets Groups Projects
Commit 92ae4493 authored by Florian Gransee's avatar Florian Gransee
Browse files

fix db_url and simplify

parent 4fc7d872
No related branches found
No related tags found
2 merge requests!289some generic fixes and cleanup,!283492 add thing abstraction to services
Pipeline #497708 passed
......@@ -26,14 +26,11 @@ class CreateFrostInstanceHandler(AbstractHandler):
def act(self, content: MqttPayload.ConfigDBUpdate, message: MQTTMessage):
thing = Thing.from_uuid(content["thing"], dsn=self.configdb_dsn)
self.setup_frost(thing)
def setup_frost(self, thing):
frost.write_context_file(
schema=thing.database.schema,
user=f"sta_{thing.database.ro_username.lower()}",
password=thing.database.ro_password,
db_url=thing.database.db_url,
db_url=thing.database.ro_url,
tomcat_proxy_url=self.tomcat_proxy_url,
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment