Project

General

Profile

0003-utils-allow-blank-SFTPField-35818.patch

Benjamin Dauvergne, 21 Oct 2019 10:25 AM

Download (858 Bytes)

View differences:

Subject: [PATCH 3/8] utils: allow blank SFTPField (#35818)

 passerelle/utils/sftp.py | 2 ++
 1 file changed, 2 insertions(+)
passerelle/utils/sftp.py
177 177
            require_all_fields=False, **kwargs)
178 178

  
179 179
    def compress(self, data_list):
180
        if not data_list:
181
            return None
180 182
        url, private_key_file, private_key_content, private_key_password = data_list
181 183
        if private_key_file:
182 184
            private_key_content = private_key_file.read().decode('ascii')
183
-