slapos.grid: Don't try to process partition if software_release_url is None.

parent cdf43a62
......@@ -711,8 +711,10 @@ class Slapgrid(object):
except (NotFoundError, TypeError, NameError):
software_url = None
if computer_partition_state == COMPUTER_PARTITION_DESTROYED_STATE and \
os.listdir(computer_partition_path) == [] and \
not software_url:
if os.listdir(computer_partition_path) != []:
self.logger.warning("Free partition %s contains file(s) in %s." % (
computer_partition.getId(), computer_partition_path))
continue
# Everything seems fine
......
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