Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Storage] Fix #28554: az storage blob service-properties update: Support cases where --static-website false and index and 404 documents were already set #30510

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -329,12 +329,15 @@ def set_service_properties_track2(client, parameters, delete_retention=None, del

if hasattr(parameters, 'static_website'):
kwargs['static_website'] = parameters.static_website
if static_website is not None:
parameters.static_website.enabled = static_website
if index_document is not None:
parameters.static_website.index_document = index_document
if error_document_404_path is not None:
parameters.static_website.error_document404_path = error_document_404_path
if static_website is not None:
parameters.static_website.enabled = static_website
if not static_website:
parameters.static_website.index_document = None
parameters.static_website.error_document404_path = None
if hasattr(parameters, 'hour_metrics'):
kwargs['hour_metrics'] = parameters.hour_metrics
if hasattr(parameters, 'logging'):
Expand Down
Loading
Loading