1
0
mirror of https://github.com/mbirth/tcl_ota_check.git synced 2024-09-19 22:33:25 +01:00

Bugfix with S3_URLs detection.

This commit is contained in:
Markus Birth 2018-02-10 03:11:53 +01:00
parent 6bcb99b0c0
commit c824d9c46b
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A

View File

@ -44,7 +44,7 @@ class DownloadResult(TclResult):
self.fileurl = file.find("DOWNLOAD_URL").text
s3_fileurl_node = file.find("S3_DOWNLOAD_URL")
self.s3_fileurl = None
if s3_fileurl_node:
if s3_fileurl_node is not None:
self.s3_fileurl = s3_fileurl_node.text
slave_list = root.find("SLAVE_LIST").findall("SLAVE")
enc_list = root.find("SLAVE_LIST").findall("ENCRYPT_SLAVE")