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"]
131
131
upload_client = SecurityDomainClient(vault_url = NEW_VAULT_URL , credential = credential)
132
132
133
133
transfer_key: TransferKey = upload_client.get_transfer_key()
134
- assert transfer_key.transfer_key_jwk
134
+ assert transfer_key.transfer_key
135
135
```
136
136
137
137
### Upload a security domain
@@ -141,9 +141,7 @@ example for disaster recovery. Like the download operation this will activate a
141
141
will return None if successful (and an error if unsuccessful) instead of the security domain object.
142
142
143
143
``` 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()
147
145
print (" The managed HSM has been successfully restored with the security domain." )
148
146
```
149
147
You can’t perform that action at this time.
0 commit comments