From e52ffb62ee056762face7c7bc648244a9f6fcd52 Mon Sep 17 00:00:00 2001 From: ImMin5 Date: Tue, 9 Jul 2024 12:25:02 +0900 Subject: [PATCH] feat: modify unique condition for public config --- src/spaceone/config/model/public_config/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spaceone/config/model/public_config/database.py b/src/spaceone/config/model/public_config/database.py index 575446a..1ddc9c4 100644 --- a/src/spaceone/config/model/public_config/database.py +++ b/src/spaceone/config/model/public_config/database.py @@ -4,7 +4,7 @@ class PublicConfig(MongoModel): - name = StringField(max_length=255, unique_with=["domain_id"]) + name = StringField(max_length=255, unique_with=["domain_id", "workspace_id", "project_id"]) data = DictField() tags = DictField() resource_group = StringField(max_length=40, choices=("DOMAIN", "WORKSPACE", "PROJECT"))