Skip to content

Commit

Permalink
support cases where --static-website is false but there is existing i…
Browse files Browse the repository at this point in the history
…ndex-document or 404-document, match portal behavior
  • Loading branch information
calvinhzy committed Dec 12, 2024
1 parent 70c47d6 commit b2aff04
Show file tree
Hide file tree
Showing 3 changed files with 352 additions and 97 deletions.
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

0 comments on commit b2aff04

Please sign in to comment.