Permalink
Browse files

fix bug when displaying retained backups in purge cmd

  • Loading branch information...
abg committed Aug 9, 2010
1 parent f73e191 commit 4dfcaa4cba1c51c9aeae5eb46e769264fb6f33cb
Showing with 1 addition and 1 deletion.
  1. +1 −1 holland/commands/purge.py
@@ -111,7 +111,7 @@ def purge_backupset(backupset, force=False, all_backups=False):
for backup in backup_list:
LOG.info(" * %s", backup.path)
LOG.info(" %d backups to keep", len(backup_list) - len(backups))
- for backup in backup_list[len(backups):]:
+ for backup in backup_list[0:-len(backups)]:
LOG.info(" + %s", backup.path)
LOG.info(" %d backups to purge", len(backups))
for backup in backups:

0 comments on commit 4dfcaa4

Please sign in to comment.