Fix env var interpretation in zuul swift upload
The zuul swift upload script wants to split an env var on newlines, but incorrectly escaped the '\' character. The env variable contains literal newlines and so should be split on that, rather than the two character '\n' sequence which is what this code assumed. Change-Id: I064b9b7baee5ae70cf6cc21d3fadcd1a341e2ae8
This commit is contained in:
parent
0bd5abba0f
commit
e355596105
@ -67,7 +67,7 @@ def swift_form_post_submit(file_list, url, hmac_body, signature):
|
||||
payload['redirect'],
|
||||
payload['max_file_size'],
|
||||
payload['max_file_count'],
|
||||
payload['expires']) = hmac_body.split('\\n')
|
||||
payload['expires']) = hmac_body.split('\n')
|
||||
payload['signature'] = signature
|
||||
|
||||
if len(file_list) > payload['max_file_count']:
|
||||
|
Loading…
x
Reference in New Issue
Block a user