From 56f4b548ed1399b97a19ced508568b04812515e6 Mon Sep 17 00:00:00 2001 From: Satoshi Fujii Date: Wed, 30 Jun 2021 06:30:18 +0000 Subject: Remove extraneous parentheses Removed unnecessary parentheses from code. Signed-off-by: Satoshi Fujii Issue-ID: DCAEGEN2-2837 Change-Id: I9a5f43a4bd894f44d0fc27c0841535faa79a39ac --- miss_htbt_service/cbs_polling.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'miss_htbt_service/cbs_polling.py') diff --git a/miss_htbt_service/cbs_polling.py b/miss_htbt_service/cbs_polling.py index d2be0d9..8d5af09 100644 --- a/miss_htbt_service/cbs_polling.py +++ b/miss_htbt_service/cbs_polling.py @@ -44,14 +44,14 @@ def pollCBS(current_pid): msg = "CBSP:CBS Polling interval is %d", cbs_polling_interval _logger.info(msg) envPytest = os.getenv('pytest', "") - if (envPytest == 'test'): + if envPytest == 'test': cbs_polling_interval = "30" time.sleep(int(cbs_polling_interval)) hbc_pid, hbc_state, hbc_srcName, hbc_time = db.read_hb_common(user_name, password, ip_address, port_num, db_name) source_name = socket.gethostname() source_name = source_name + "-" + str(os.getenv('SERVICE_NAME', "")) result = True - if (int(current_pid) == int(hbc_pid) and source_name == hbc_srcName and hbc_state == "RUNNING"): + if int(current_pid) == int(hbc_pid) and source_name == hbc_srcName and hbc_state == "RUNNING": _logger.info("CBSP:ACTIVE Instance:Change the state to RECONFIGURATION") state = "RECONFIGURATION" update_flg = 1 @@ -63,5 +63,5 @@ def pollCBS(current_pid): if __name__ == "__main__": current_pid = sys.argv[1] - while (True): + while True: pollCBS(current_pid) -- cgit 1.2.3-korg