Skip to content

Commit

Permalink
only create obj if not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinhzy committed Jul 10, 2023
1 parent e8efb79 commit 8137401
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,10 @@ def create_storage_account(cmd, resource_group_name, account_name, sku=None, loc
if encryption_key_type_for_table is not None or encryption_key_type_for_queue is not None:
EncryptionServices = cmd.get_models('EncryptionServices')
EncryptionService = cmd.get_models('EncryptionService')
params.encryption = Encryption()
params.encryption.services = EncryptionServices()
if params.encryption is None:
params.encryption = Encryption()
if params.encryption.services is None:
params.encryption.services = EncryptionServices()
if encryption_key_type_for_table is not None:
table_encryption_service = EncryptionService(enabled=True, key_type=encryption_key_type_for_table)
params.encryption.services.table = table_encryption_service
Expand Down

0 comments on commit 8137401

Please sign in to comment.