Skip to content

Commit

Permalink
Fix put_encrypted_blob function (Azure#15918)
Browse files Browse the repository at this point in the history
Fixing function by setting key_encryption_key instead of  key_resolver_function
  • Loading branch information
griseau authored and rakshith91 committed Jan 8, 2021
1 parent 50e6bef commit e4d7b7c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def put_encrypted_blob(self):
# this property will tell the service to encrypt the blob. Blob encryption
# is supported only for uploading whole blobs and only at the time of creation.
kek = KeyWrapper('key1')
self.container_client.key_resolver_function = kek
self.container_client.key_encryption_key = kek

self.container_client.upload_blob(block_blob_name, u'ABC', )

Expand Down

0 comments on commit e4d7b7c

Please sign in to comment.