Skip to content
Snippets Groups Projects

Resolve "Initial Publish uptime of CS instance to IS"

1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -118,8 +118,8 @@ class InfoServiceThread(threading.Thread):
def cleanup_unwanted_stuff(self, name_of_unwanted_IS_entry, type_of_unwanted_IS_entry):
'''For deleting old castorscript information in case of change of format'''
it = ispy.ISInfoIterator(self.ipc_partition, self.IS_server, ispy.ISCriteria('.*'))
is_info_dictionary = ispy.ISInfoDictionary(self.ipc_partition)
it = ispy.ISInfoIterator(self.ipc_partition, self.IS_server, ispy.ISCriteria('.*')) #pylint: disable=no-member
is_info_dictionary = ispy.ISInfoDictionary(self.ipc_partition) #pylint: disable=no-member
self.logger.debug("Removing old objects of with old type %s, with name %s in the %s server:",type_of_unwanted_IS_entry,name_of_unwanted_IS_entry, self.IS_server)
while it.next():
if str(it.name()).find(name_of_unwanted_IS_entry) is not -1 and str(it.type()).find(type_of_unwanted_IS_entry) is not -1:
Loading