Merge "Fix system mode string comparison to apply rpc hybrid mode cleanup"

This commit is contained in:
Zuul 2022-11-29 20:47:01 +00:00 committed by Gerrit Code Review
commit 3c71b8d71f
1 changed files with 1 additions and 1 deletions

View File

@ -12274,7 +12274,7 @@ class ConductorManager(service.PeriodicService):
# TODO(RPCHybridMode): This is only useful for 21.12 -> 22.12 upgrades.
# Remove this in new releases, when it's no longer necessary
# do the migration work through RabbitMQ and ZeroMQ
if (tsc.system_mode is not constants.SYSTEM_MODE_SIMPLEX):
if (tsc.system_mode != constants.SYSTEM_MODE_SIMPLEX):
rpcapi = agent_rpcapi.AgentAPI()
controller_1 = self.dbapi.ihost_get_by_hostname(
constants.CONTROLLER_1_HOSTNAME)