From 3cd94503ff27e141ec92b191988b38f183950811 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 26 Jun 2018 16:57:05 -0400 Subject: [PATCH] Fix uploads without otherfields otherfields addition for IMM broke other uploads. Rectify the mistake by referencing an empty tuple instead. Change-Id: I0db752351cfef4ba54cb81b551585ac5aad74f91 --- pyghmi/util/webclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyghmi/util/webclient.py b/pyghmi/util/webclient.py index 84592dce..a741b01d 100644 --- a/pyghmi/util/webclient.py +++ b/pyghmi/util/webclient.py @@ -45,7 +45,7 @@ uploadforms = {} class FileUploader(threading.Thread): def __init__(self, webclient, url, filename, data=None, formname=None, - otherfields=None): + otherfields=()): self.wc = webclient self.url = url self.filename = filename