Move logger just after checking if we want to skip it

parent 5440626d
......@@ -650,8 +650,6 @@ class Slapgrid(object):
computer_partition_id = computer_partition.getId()
logger.info('Processing Computer Partition %s...' % computer_partition_id)
# Sanity checks before processing
# Those values should not be None or empty string or any falsy value
if not computer_partition_id:
......@@ -663,6 +661,8 @@ class Slapgrid(object):
(computer_partition_id not in self.computer_partition_filter_list):
return
logger.info('Processing Computer Partition %s...' % computer_partition_id)
instance_path = os.path.join(self.instance_root, computer_partition_id)
# Try to get partition timestamp (last modification date)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment