Skip to content

Commit

Permalink
chore: fix linting and ut
Browse files Browse the repository at this point in the history
  • Loading branch information
IronCore864 committed Apr 15, 2024
1 parent 1bc5e5c commit 8e7dd97
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scenario/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@
)
from uuid import uuid4

import ops
import yaml
from ops import CloudCredential, CloudSpec, pebble
from ops import pebble
from ops.charm import CharmBase, CharmEvents
from ops.model import SecretRotate, StatusBase

Expand Down Expand Up @@ -157,7 +158,7 @@ class CloudCredential:
"""A list of redacted secrets."""

def _to_ops_cloud_credential(self):
return CloudCredential(
return ops.CloudCredential(
auth_type=self.auth_type,
attributes=self.attributes,
redacted=self.redacted,
Expand Down Expand Up @@ -196,8 +197,8 @@ class CloudSpec:
is_controller_cloud: bool = False
"""If this is the cloud used by the controller."""

def _to_ops_cloud_spec(self) -> CloudSpec:
return CloudSpec(
def _to_ops_cloud_spec(self) -> ops.CloudSpec:
return ops.CloudSpec(
type=self.type,
name=self.name,
region=self.region,
Expand Down

0 comments on commit 8e7dd97

Please sign in to comment.