Skip to content

Commit f344aac

Browse files
authored
Fix updated references (Azure#40987)
1 parent c707cea commit f344aac

File tree

1 file changed

+2
-4
lines changed
  • sdk/keyvault/azure-keyvault-securitydomain

1 file changed

+2
-4
lines changed

sdk/keyvault/azure-keyvault-securitydomain/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ NEW_VAULT_URL = os.environ["NEW_VAULT_URL"]
131131
upload_client = SecurityDomainClient(vault_url=NEW_VAULT_URL, credential=credential)
132132

133133
transfer_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
141141
will 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()
147145
print("The managed HSM has been successfully restored with the security domain.")
148146
```
149147

0 commit comments

Comments
 (0)