diff options
author | James E. Blair <jeblair@hp.com> | 2015-02-27 14:21:56 -0800 |
---|---|---|
committer | James E. Blair <jeblair@hp.com> | 2015-02-27 14:21:56 -0800 |
commit | 897d9cf13d3a3ac527d98cccb570fd96e8b67ff8 (patch) | |
tree | 73421893b4ac7f3a993e175a1e9a0573bdd51b07 | |
parent | db8b89bef7160a40489bd193888adbab319718c3 (diff) | |
download | zuul-897d9cf13d3a3ac527d98cccb570fd96e8b67ff8.tar.gz |
Fix int conversion in swift
Change-Id: I1e07978f12341214301f1e4b01f0b57047794728
-rw-r--r-- | zuul/lib/swift.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zuul/lib/swift.py b/zuul/lib/swift.py index 9b9bea375..3c411d3ff 100644 --- a/zuul/lib/swift.py +++ b/zuul/lib/swift.py @@ -147,8 +147,10 @@ class Swift(object): settings[key] = kwargs[altkey] elif self.config.has_option('swift', 'default_' + key): settings[key] = self.config.get('swift', 'default_' + key) + # TODO: these are always strings; some should be converted + # to ints. - expires = int(time() + settings['expiry']) + expires = int(time() + int(settings['expiry'])) redirect = '' url = os.path.join(self.storage_url, settings['container'], |