Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix bug when displaying retained backups in purge cmd

  • Loading branch information...
commit 4dfcaa4cba1c51c9aeae5eb46e769264fb6f33cb 1 parent f73e191
@abg abg authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  holland/commands/purge.py
View
2  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:
Please sign in to comment.
Something went wrong with that request. Please try again.