Skip to content

Commit

Permalink
pass in value by param name instead of in headers (Azure#24668)
Browse files Browse the repository at this point in the history
  • Loading branch information
iscai-msft authored and sarkar-rajarshi committed Jun 9, 2022
1 parent 8f41380 commit 74a8035
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1521,11 +1521,12 @@ def _create_page_blob_options( # type: ignore
kwargs['immutability_policy_expiry'] = immutability_policy.expiry_time
kwargs['immutability_policy_mode'] = immutability_policy.policy_mode

tier = None
if premium_page_blob_tier:
try:
headers['x-ms-access-tier'] = premium_page_blob_tier.value # type: ignore
tier = premium_page_blob_tier.value # type: ignore
except AttributeError:
headers['x-ms-access-tier'] = premium_page_blob_tier # type: ignore
tier = premium_page_blob_tier # type: ignore

blob_tags_string = serialize_blob_tags_header(kwargs.pop('tags', None))

Expand All @@ -1541,6 +1542,7 @@ def _create_page_blob_options( # type: ignore
'cpk_info': cpk_info,
'blob_tags_string': blob_tags_string,
'cls': return_response_headers,
"tier": tier,
'headers': headers}
options.update(kwargs)
return options
Expand Down

0 comments on commit 74a8035

Please sign in to comment.