Skip to content

Commit f32c3c6

Browse files
committed
correct index_zip condition type
1 parent bfeeeef commit f32c3c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

akamai/netstorage/netstorage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def upload(self, local_source, ns_destination, index_zip=False):
208208
raise NetstorageError("[NetstorageError] {0} doesn't exist or is directory".format(local_source))
209209

210210
action = 'upload'
211-
if index_zip is True or index_zip.lower() == 'true':
211+
if index_zip is True or str(index_zip).lower() == 'true':
212212
action = action + '&index-zip=2'
213213

214214
return self._request(action=action,

0 commit comments

Comments
 (0)