diff --git a/libcloud/compute/drivers/equinixmetal.py b/libcloud/compute/drivers/equinixmetal.py index 6832d9a17b..4b46d72df2 100644 --- a/libcloud/compute/drivers/equinixmetal.py +++ b/libcloud/compute/drivers/equinixmetal.py @@ -1063,7 +1063,7 @@ def ex_describe_attachment(self, attachment_id): 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: