From a6d9b0f599c68e02a7bcd9b3a2c16edc24ccbf78 Mon Sep 17 00:00:00 2001 From: James Kasten Date: Thu, 23 May 2013 14:43:41 -0400 Subject: [PATCH] Fix --view-checkpoints --- trustify/client/configurator.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/trustify/client/configurator.py b/trustify/client/configurator.py index 46ce8799b..7527f2775 100644 --- a/trustify/client/configurator.py +++ b/trustify/client/configurator.py @@ -1253,11 +1253,10 @@ LogLevel warn \n\ # Make sure there isn't anything unexpected in the backup folder # There should only be timestamped (float) directories try: - float(bu) for bu in backups + for bu in backups: + float(bu) except: - assert(False, "Invalid files in %s" % BACKUP_DIR) - - assert(all(bu.isdigit() for bu in backups)) + assert False, "Invalid files in %s" % BACKUP_DIR for bu in backups: print time.ctime(float(bu)) @@ -1271,7 +1270,7 @@ LogLevel warn \n\ print " %s" % fp try: - with open(BACKUP_DIR + "/NEW_FILES") as f: + with open(BACKUP_DIR + bu + "/NEW_FILES") as f: print "New Configuration Files:" filepaths = f.read().splitlines() for fp in filepaths: