From cddfafaa553f6671f70ac440eca691ddbec67dc8 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 6 Jan 2023 03:50:22 +0100 Subject: [PATCH] app resource: fix boring test edge case related to the initial properties object being modified --- src/utils/resources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/resources.py b/src/utils/resources.py index cb8688046..f0e099eb1 100644 --- a/src/utils/resources.py +++ b/src/utils/resources.py @@ -940,7 +940,7 @@ class DatabaseAppResource(AppResource): # Hack so that people can write type = "mysql/postgresql" in toml but it's loaded as dbtype # to avoid conflicting with the generic self.type of the resource object ... # dunno if that's really a good idea :| - properties["dbtype"] = properties.pop("type") + properties = {"dbtype": properties["type"]} super().__init__(properties, *args, **kwargs)