From 8bd1aeeadac142fbf62fc2aeabe2e94aa430d09c Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 19 Jun 2018 14:16:12 -0400 Subject: [PATCH] Properly pass formname when using FileUploader There was an oversight where the formname was not properly passed when requested. Change-Id: I6a7b95b82bbfcdbd8f7c54261fb09b1b70b9347c --- pyghmi/util/webclient.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyghmi/util/webclient.py b/pyghmi/util/webclient.py index dcedb8ee..84592dce 100644 --- a/pyghmi/util/webclient.py +++ b/pyghmi/util/webclient.py @@ -51,11 +51,12 @@ class FileUploader(threading.Thread): self.filename = filename self.data = data self.otherfields = otherfields + self.formname = formname super(FileUploader, self).__init__() def run(self): self.rsp = self.wc.upload(self.url, self.filename, self.data, - otherfields=self.otherfields) + self.formname, otherfields=self.otherfields) def get_upload_form(filename, data, formname, otherfields):