File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
sdk/keyvault/azure-keyvault-securitydomain Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ NEW_VAULT_URL = os.environ["NEW_VAULT_URL"]
131131upload_client = SecurityDomainClient(vault_url = NEW_VAULT_URL , credential = credential)
132132
133133transfer_key: TransferKey = upload_client.get_transfer_key()
134- assert transfer_key.transfer_key_jwk
134+ assert transfer_key.transfer_key
135135```
136136
137137### Upload a security domain
@@ -141,9 +141,7 @@ example for disaster recovery. Like the download operation this will activate a
141141will return None if successful (and an error if unsuccessful) instead of the security domain object.
142142
143143``` python
144- from azure.keyvault.securitydomain.models import SecurityDomainOperationStatus
145-
146- result: SecurityDomainOperationStatus = upload_client.begin_upload(security_domain = result).result()
144+ upload_client.begin_upload(security_domain = result).wait()
147145print (" The managed HSM has been successfully restored with the security domain." )
148146```
149147
You can’t perform that action at this time.
0 commit comments