Fix corrupted zip/image upload 57/13957/6
authorBengt Thuree <bthuree@linuxfoundation.org>
Fri, 18 Jan 2019 18:28:17 +0000 (05:28 +1100)
committerBengt Thuree <bthuree@linuxfoundation.org>
Sun, 20 Jan 2019 22:55:04 +0000 (09:55 +1100)
commit7bbb7dc1e3a75ba2461a92de24022a8469732595
tree3633d1a1353e09de0ad335506cfdb63862dcf3e4
parent5dfd489d3fe3e137f6845a046f3a69ed0fc24fbe
Fix corrupted zip/image upload

Change the parameter to requests.posts from files=files,
where files contained the file reference, to
data=file.read().

This was done, since with the previous configuration binary files were
corrupted during upload.

Change-Id: I85c68adc32e031c7f1f101e9d8bfcb5a7acb0670
Issue-Id: RELENG-1591
Signed-off-by: Bengt Thuree <bthuree@linuxfoundation.org>
lftools/deploy.py