Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit fd5e2e3

Browse files
author
Rohit Kolapkar
committed
CORTX-33159: Codacy fix
Signed-off-by: Rohit Kolapkar <[email protected]>
1 parent 2a28395 commit fd5e2e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csm/conf/configure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def _create_cluster_stop_topic(mb_admin):
291291
partitions = int(Conf.get(const.CSM_GLOBAL_INDEX,const.MSG_BUS_CLUSTER_STOP_PARTITIONS))
292292
retention_size = int(Conf.get(const.CSM_GLOBAL_INDEX,const.MSG_BUS_CLUSTER_STOP_RETENTION_SIZE))
293293
retention_period = int(Conf.get(const.CSM_GLOBAL_INDEX,const.MSG_BUS_CLUSTER_STOP_RETENTION_PERIOD))
294-
if not message_type in mb_admin.list_message_types():
294+
if message_type not in mb_admin.list_message_types():
295295
Log.info(f"Config: Registering message_type:{message_type}")
296296
mb_admin.register_message_type(message_types=[message_type], partitions=partitions)
297297
mb_admin.set_message_type_expire(message_type,

0 commit comments

Comments
 (0)