commit ad88e30ab01a982042f7854cf08ed0be8248efa3 Author: gecong1973 Date: Sun Oct 11 18:53:35 2020 -0700 fix a bug for get_backups Change-Id: Ib5c8198af6722e85e16b4a0f20bbf1fb25bfbe94 diff --git a/freezer/openstack/restore.py b/freezer/openstack/restore.py index c7206ac..e1b22c4 100644 --- a/freezer/openstack/restore.py +++ b/freezer/openstack/restore.py @@ -71,9 +71,10 @@ class RestoreOs(object): msg = ("{} storage type is not supported at the moment." " Try local, SWIFT, SSH(SFTP), FTP or FTPS ". format(self.storage.type)) - print(msg) + LOG.error(msg) raise BaseException(msg) - backups = list(filter(lambda x: x >= restore_from_timestamp, backups)) + backups = list(filter(lambda x: int(x) >= restore_from_timestamp, + backups)) if not backups: msg = "Cannot find backups for path: %s" % path LOG.error(msg)