Use timeout as whole seconds in swift plugin

Change-Id: Ib40612fbb88969cf41457c513722a83d1cdc9019
Closes-Bug: #1641800
This commit is contained in:
rabi 2016-11-15 08:21:52 +05:30
parent 0d5a82c71f
commit ddd55567f5
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ class SwiftClientPlugin(client_plugin.ClientPlugin):
path = '/v1/AUTH_%s/%s/%s' % (self.context.tenant_id, container_name,
obj_name)
if timeout is None:
timeout = MAX_EPOCH - 60 - time.time()
timeout = int(MAX_EPOCH - 60 - time.time())
tempurl = swiftclient_utils.generate_temp_url(path, timeout, key,
method)
sw_url = parse.urlparse(self.client().url)