From 1ad441992c1eee18826dfb0d55c5fc660a99eb49 Mon Sep 17 00:00:00 2001 From: Miles Zimmerman Date: Fri, 3 Nov 2023 20:48:29 -0700 Subject: [PATCH] fix lint issues --- dask_cloudprovider/fly/machine.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/dask_cloudprovider/fly/machine.py b/dask_cloudprovider/fly/machine.py index 64cb474c..96a4c374 100644 --- a/dask_cloudprovider/fly/machine.py +++ b/dask_cloudprovider/fly/machine.py @@ -77,9 +77,7 @@ async def create_vm(self): services=[ machines.FlyMachineConfigServices( ports=[ - machines.FlyMachineRequestConfigServicesPort( - port=8786 - ), + machines.FlyMachineRequestConfigServicesPort(port=8786), ], protocol="tcp", internal_port=8786, @@ -123,16 +121,18 @@ async def create_vm(self): self.host = f"{self.machine.id}.vm.{self.cluster.app_name}.internal" self.internal_ip = self.machine.private_ip self.port = 8786 - self.address = f"{self.cluster.protocol}://[{self.machine.private_ip}]:{self.port}" + self.address = ( + f"{self.cluster.protocol}://[{self.machine.private_ip}]:{self.port}" + ) # self.external_address = f"{self.cluster.protocol}://{self.host}:{self.port}" log_attributes = { - 'name': self.name, - 'machine': self.machine.id, - 'internal_ip': self.internal_ip, - 'address': self.address, + "name": self.name, + "machine": self.machine.id, + "internal_ip": self.internal_ip, + "address": self.address, } if self.external_address is not None: - log_attributes['external_address'] = self.external_address + log_attributes["external_address"] = self.external_address logline = "[fly.io] Created machine " + " ".join( [f"{k}={v}" for k, v in log_attributes.items()] )