Skip to content

Commit

Permalink
Address linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
addyess authored and HomayoonAlimohammadi committed Jan 24, 2025
1 parent 27017f3 commit 23e4185
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charms/worker/k8s/lib/charms/k8s/v0/k8sd_api_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ class RefreshCertificatesPlanMetadata(BaseModel, allow_population_by_field_name=
of the CertificateSigningRequests that need to be signed externally (for worker nodes).
"""

seed: int = Field(default=None, alias="seconds")
seed: Optional[int] = Field(default=None, alias="seconds")
certificate_signing_requests: Optional[list[str]] = Field(
default=None, alias="certificate-signing-requests"
)
Expand Down
2 changes: 1 addition & 1 deletion charms/worker/k8s/src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def _configure_external_load_balancer(self):
msg = "No response from Load Balancer"
status.add(ops.WaitingStatus(msg))
raise ReconcilerError(msg)
elif resp.error:
if resp.error:
msg = f"Load Balancer error: {resp.error}"
status.add(ops.BlockedStatus(msg))
raise ReconcilerError(msg)
Expand Down

0 comments on commit 23e4185

Please sign in to comment.