This is an automated email from the ASF dual-hosted git repository. tomaz pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/libcloud.git
commit 1347f74d7af32e6abd460e4b6a8d2fef299223db Author: Tomaz Muraus <to...@tomaz.me> AuthorDate: Thu Apr 18 18:06:06 2024 +0200 Fix lint. --- libcloud/compute/drivers/equinixmetal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcloud/compute/drivers/equinixmetal.py b/libcloud/compute/drivers/equinixmetal.py index 6832d9a17..4b46d72df 100644 --- a/libcloud/compute/drivers/equinixmetal.py +++ b/libcloud/compute/drivers/equinixmetal.py @@ -1063,7 +1063,7 @@ def _list_async(driver): return data def _valid_location(self, metro_code): - if metro_code == None or metro_code == "": + if not metro_code: return False metros = self.connection.request("/metal/v1/locations/metros").object["metros"] for metro in metros: