Update src/utils/resources.py

Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
Tagada 2023-08-22 17:12:03 +02:00 committed by GitHub
parent ee4d94d382
commit 73a144fa46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1373,7 +1373,7 @@ class DatabaseAppResource(AppResource):
def deprovision(self, context: Dict = {}):
db_user = self.app.replace("-", "_").replace(".", "_")
db_name = self.get_setting("db_name") || db_user
db_name = self.get_setting("db_name") or db_user
if self.dbtype == "mysql":
self._run_script(