Skip to content

Commit

Permalink
chore: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
IronCore864 committed Apr 8, 2024
1 parent 108b1ce commit 9d58637
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scenario/mocking.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,10 @@ def resource_get(self, resource_name: str) -> str:
)

def credential_get(self) -> CloudSpec:
if not self._cloud_spec:
raise ModelError(
"ERROR cloud spec is empty, initialise it with `scenario.State(cloud_spec=...)`",
)
return self._state.cloud_spec


Expand Down

0 comments on commit 9d58637

Please sign in to comment.