Skip to content

Commit

Permalink
use return not yield in _create_storage_credential
Browse files Browse the repository at this point in the history
  • Loading branch information
qziyuan committed Feb 21, 2024
1 parent 477d0d6 commit feb3d58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/databricks/labs/ucx/migration/azure_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def _create_storage_credential(self, sp_migration: ServicePrincipalMigrationInfo
)

validation_result = self._validate_storage_credential(storage_credential, sp_migration.service_principal.prefix)
yield validation_result
return validation_result

def _validate_storage_credential(self, storage_credential, location) -> StorageCredentialValidationResult:
validation = self._ws.storage_credentials.validate(
Expand Down

0 comments on commit feb3d58

Please sign in to comment.