From f28c0f3a0d33daf051f7a800164046442e8fa1cc Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Sun, 26 Jul 2020 12:39:10 -0400 Subject: [PATCH] Fixed invalid variable name --- plugins/cloudimport/cloud_platform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/cloudimport/cloud_platform.py b/plugins/cloudimport/cloud_platform.py index 7322d9fa..be50f667 100644 --- a/plugins/cloudimport/cloud_platform.py +++ b/plugins/cloudimport/cloud_platform.py @@ -98,7 +98,7 @@ class File: def is_valid(self): """Only keep files that are images, or that are named 'gcp_list.txt'""" _, file_extension = path.splitext(self.name) - return file_extension.lower() in VALID_IMAGE_EXTENSIONS or file_name == 'gcp_list.txt' + return file_extension.lower() in VALID_IMAGE_EXTENSIONS or self.name == 'gcp_list.txt' def serialize(self): return {'name': self.name, 'url': self.url}