lint: reformat python code with black
This commit is contained in:
parent
331beb01b4
commit
a406a7974b
88 changed files with 2579 additions and 1608 deletions
|
@ -34,7 +34,7 @@ class BridgeConf(AbstractConfiguration):
|
|||
product="bridge",
|
||||
provider="",
|
||||
resource_type="bridgeconf",
|
||||
resource_id=str(self.id)
|
||||
resource_id=str(self.id),
|
||||
)
|
||||
|
||||
def destroy(self) -> None:
|
||||
|
@ -48,14 +48,22 @@ class BridgeConf(AbstractConfiguration):
|
|||
@classmethod
|
||||
def csv_header(cls) -> List[str]:
|
||||
return super().csv_header() + [
|
||||
"pool_id", "provider", "method", "description", "target_number", "max_number", "expiry_hours"
|
||||
"pool_id",
|
||||
"provider",
|
||||
"method",
|
||||
"description",
|
||||
"target_number",
|
||||
"max_number",
|
||||
"expiry_hours",
|
||||
]
|
||||
|
||||
|
||||
class Bridge(AbstractResource):
|
||||
conf_id: Mapped[int] = mapped_column(db.ForeignKey("bridge_conf.id"))
|
||||
cloud_account_id: Mapped[int] = mapped_column(db.ForeignKey("cloud_account.id"))
|
||||
terraform_updated: Mapped[Optional[datetime]] = mapped_column(AwareDateTime(), nullable=True)
|
||||
terraform_updated: Mapped[Optional[datetime]] = mapped_column(
|
||||
AwareDateTime(), nullable=True
|
||||
)
|
||||
nickname: Mapped[Optional[str]]
|
||||
fingerprint: Mapped[Optional[str]]
|
||||
hashed_fingerprint: Mapped[Optional[str]]
|
||||
|
@ -71,11 +79,16 @@ class Bridge(AbstractResource):
|
|||
product="bridge",
|
||||
provider=self.cloud_account.provider.key,
|
||||
resource_type="bridge",
|
||||
resource_id=str(self.id)
|
||||
resource_id=str(self.id),
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def csv_header(cls) -> List[str]:
|
||||
return super().csv_header() + [
|
||||
"conf_id", "terraform_updated", "nickname", "fingerprint", "hashed_fingerprint", "bridgeline"
|
||||
"conf_id",
|
||||
"terraform_updated",
|
||||
"nickname",
|
||||
"fingerprint",
|
||||
"hashed_fingerprint",
|
||||
"bridgeline",
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue