summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xLabController/cron.daily/expire_distros2
1 files changed, 2 insertions, 0 deletions
diff --git a/LabController/cron.daily/expire_distros b/LabController/cron.daily/expire_distros
index 66fb6c2..049ceb8 100755
--- a/LabController/cron.daily/expire_distros
+++ b/LabController/cron.daily/expire_distros
@@ -15,6 +15,7 @@ if __name__ == '__main__':
rdistros = []
for distro in distros:
if not os.path.exists(distro.kernel):
+ print "Removing distro %s" % distro.name
bootapi.remove_distro(distro, recursive=True)
rdistros.append(distro.name)
continue
@@ -23,6 +24,7 @@ if __name__ == '__main__':
continue
distro_timestamp = datetime.fromtimestamp(float(distro.tree_build_time))
if distro_timestamp < expiredelta:
+ print "Removing distro %s" % distro.name
bootapi.remove_distro(distro, recursive=True)
rdistros.append(distro.name)
inventory.labcontrollers.removeDistros(settings.server, rdistros)