@@ -951,7 +951,7 @@ def handle_old_channels(
951951def update_existing_channel_diff_iocid (
952952 existing_channels : Dict [str , CFChannel ],
953953 channel_name : str ,
954- newProps : List [CFProperty ],
954+ new_properties : List [CFProperty ],
955955 processor : CFProcessor ,
956956 channels : List [CFChannel ],
957957 cf_config : CFConfig ,
@@ -967,7 +967,7 @@ def update_existing_channel_diff_iocid(
967967 Args:
968968 existing_channels: The dictionary of existing channels.
969969 channel_name: The name of the channel.
970- newProps : The new properties.
970+ new_properties : The new properties.
971971 processor: The processor.
972972 channels: The list of channels.
973973 cf_config: configuration of processor
@@ -977,7 +977,7 @@ def update_existing_channel_diff_iocid(
977977 """
978978 existing_channel = existing_channels [channel_name ]
979979 existing_channel .properties = __merge_property_lists (
980- newProps ,
980+ new_properties ,
981981 existing_channel ,
982982 processor .managed_properties ,
983983 )
@@ -987,7 +987,7 @@ def update_existing_channel_diff_iocid(
987987 if cf_config .alias_enabled :
988988 if channel_name in record_info_by_name :
989989 alias_properties = [CFProperty .alias (ioc_info .owner , channel_name )]
990- for p in newProps :
990+ for p in new_properties :
991991 alias_properties .append (p )
992992 for alias_name in record_info_by_name [channel_name ].aliases :
993993 if alias_name in existing_channels :
@@ -1007,7 +1007,7 @@ def create_new_channel(
10071007 channels : List [CFChannel ],
10081008 channel_name : str ,
10091009 ioc_info : IocInfo ,
1010- newProps : List [CFProperty ],
1010+ new_properties : List [CFProperty ],
10111011 cf_config : CFConfig ,
10121012 record_info_by_name : Dict [str , RecordInfo ],
10131013) -> None :
@@ -1020,17 +1020,17 @@ def create_new_channel(
10201020 channels: The list of channels.
10211021 channel_name: The name of the channel.
10221022 ioc_info: The IOC information.
1023- newProps : The new properties.
1023+ new_properties : The new properties.
10241024 cf_config: configuration of processor
10251025 record_info_by_name: The dictionary of record names to information.
10261026 """
10271027
1028- channels .append (CFChannel (channel_name , ioc_info .owner , newProps ))
1028+ channels .append (CFChannel (channel_name , ioc_info .owner , new_properties ))
10291029 _log .debug ("Add new channel: %s" , channel_name )
10301030 if cf_config .alias_enabled :
10311031 if channel_name in record_info_by_name :
10321032 alias_properties = [CFProperty .alias (ioc_info .owner , channel_name )]
1033- for p in newProps :
1033+ for p in new_properties :
10341034 alias_properties .append (p )
10351035 for alias in record_info_by_name [channel_name ].aliases :
10361036 channels .append (CFChannel (alias , ioc_info .owner , alias_properties ))
@@ -1097,7 +1097,7 @@ def __updateCF__(
10971097 existing_channels = get_existing_channels (new_channels , client , cf_config , processor )
10981098
10991099 for channel_name in new_channels :
1100- newProps = create_ioc_properties (
1100+ new_properties = create_ioc_properties (
11011101 ioc_info .owner ,
11021102 ioc_info .time ,
11031103 recceiverid ,
@@ -1111,16 +1111,16 @@ def __updateCF__(
11111111 and channel_name in record_info_by_name
11121112 and record_info_by_name [channel_name ].record_type
11131113 ):
1114- newProps .append (CFProperty .record_type (ioc_info .owner , record_info_by_name [channel_name ].record_type ))
1114+ new_properties .append (CFProperty .record_type (ioc_info .owner , record_info_by_name [channel_name ].record_type ))
11151115 if channel_name in record_info_by_name :
1116- newProps = newProps + record_info_by_name [channel_name ].info_properties
1116+ new_properties = new_properties + record_info_by_name [channel_name ].info_properties
11171117
11181118 if channel_name in existing_channels :
11191119 _log .debug ("update existing channel %s: exists but with a different iocid from %s" , channel_name , iocid )
11201120 update_existing_channel_diff_iocid (
11211121 existing_channels ,
11221122 channel_name ,
1123- newProps ,
1123+ new_properties ,
11241124 processor ,
11251125 channels ,
11261126 cf_config ,
@@ -1129,7 +1129,7 @@ def __updateCF__(
11291129 iocid ,
11301130 )
11311131 else :
1132- create_new_channel (channels , channel_name , ioc_info , newProps , cf_config , record_info_by_name )
1132+ create_new_channel (channels , channel_name , ioc_info , new_properties , cf_config , record_info_by_name )
11331133 _log .info ("Total channels to update: %s for ioc: %s" , len (channels ), ioc_info )
11341134
11351135 if len (channels ) != 0 :
0 commit comments