This should fix disabling oestats with following message:
WARNING: oestats: error sending task (exception <type
'exceptions.KeyError'>, value 'qalog'), disabling stats
Signed-off-by: Yuri Bushmelev <jay4mail@gmail.com>
output.append('')
output.append(vars[key])
for key in files:
- if not vars[key]: continue
+ if not files[key]: continue
+ if not files[key]['content']: continue
output.append('--' + bound)
output.append('Content-Disposition: form-data; name="%s"; filename="%s"' % (key, files[key]['filename']))
output.append('Content-Type: %s' % files[key]['content-type'])