Skip to content

Commit

Permalink
Fix lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kami committed Apr 18, 2024
1 parent 74a9a21 commit 1347f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcloud/compute/drivers/equinixmetal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1347f74

Please sign in to comment.