From 608e986028766a1364b5e2f02bddc1905d228f5a Mon Sep 17 00:00:00 2001 From: Bo Tran Date: Wed, 17 Jul 2024 11:00:41 +0700 Subject: [PATCH] Make more flexible with locality options Story: #2011175 Task: #50587 Change-Id: I50673a72c7da3ac1341559a0d5264349454370c4 --- trove/instance/service.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trove/instance/service.py b/trove/instance/service.py index 99f5e1041e..1dd30b3289 100644 --- a/trove/instance/service.py +++ b/trove/instance/service.py @@ -472,7 +472,9 @@ class InstanceController(wsgi.Controller): self._check_nic(context, nic) if locality: - locality_domain = ['affinity', 'anti-affinity'] + locality_domain = [ + 'affinity', 'soft-affinity', + 'anti-affinity', 'soft-anti-affinity'] locality_domain_msg = ("Invalid locality '%s'. " "Must be one of ['%s']" % (locality,