summaryrefslogtreecommitdiff
path: root/zuul/lib/swift.py
diff options
context:
space:
mode:
Diffstat (limited to 'zuul/lib/swift.py')
-rw-r--r--zuul/lib/swift.py4
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'],