summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Peck <bpeck@redhat.com>2009-06-22 09:29:59 -0400
committerBill Peck <bpeck@redhat.com>2009-06-22 09:29:59 -0400
commit3935e7269dab016c360d560d9913f9b6cb762f22 (patch)
tree5f2e87517e60badc25b0a6319e27d80b74e89cff
parent49904e0334ee7d05bad329f19ac1492b7115f989 (diff)
be verbose when deleting distros
-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)