Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mileszim committed Nov 4, 2023
1 parent b9c6e4a commit 1ad4419
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions dask_cloudprovider/fly/machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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()]
)
Expand Down

0 comments on commit 1ad4419

Please sign in to comment.