pulumi-django-azure 1.0.3__py3-none-any.whl → 1.0.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumi-django-azure might be problematic. Click here for more details.

@@ -357,10 +357,11 @@ class DjangoDeployment(pulumi.ComponentResource):
357
357
  :param storage_account: The storage account
358
358
  :return: The access keys
359
359
  """
360
-
361
- keys = azure.storage.list_storage_account_keys(
362
- resource_group_name=self._rg,
363
- account_name=storage_account.name,
360
+ keys = pulumi.Output.all(self._rg, storage_account.name).apply(
361
+ lambda args: azure.storage.list_storage_account_keys(
362
+ resource_group_name=args[0],
363
+ account_name=args[1],
364
+ )
364
365
  )
365
366
 
366
367
  return keys.keys
@@ -533,8 +534,12 @@ class DjangoDeployment(pulumi.ComponentResource):
533
534
  scope=self._storage_account.id,
534
535
  )
535
536
 
536
- # Create a CORS rule for this website
537
- # Add cors rules
537
+ # Create a CORS rules for this website
538
+ if website_hosts:
539
+ origins = [f"https://{host}" for host in website_hosts]
540
+ else:
541
+ origins = ["*"]
542
+
538
543
  azure.storage.BlobServiceProperties(
539
544
  f"sa-{name}-blob-properties",
540
545
  resource_group_name=self._rg,
@@ -545,7 +550,7 @@ class DjangoDeployment(pulumi.ComponentResource):
545
550
  azure.storage.CorsRuleArgs(
546
551
  allowed_headers=["*"],
547
552
  allowed_methods=["GET", "OPTIONS", "HEAD"],
548
- allowed_origins=[f"https://{host}" for host in website_hosts],
553
+ allowed_origins=origins,
549
554
  exposed_headers=["Access-Control-Allow-Origin"],
550
555
  max_age_in_seconds=86400,
551
556
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi-django-azure
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Summary: Simply deployment of Django on Azure with Pulumi
5
5
  Author-email: Maarten Ureel <maarten@youreal.eu>
6
6
  License: MIT License
@@ -0,0 +1,7 @@
1
+ pulumi_django_azure/__init__.py,sha256=tXTvPfr8-Nll5cjMyY9yj_0z_PQ0XAcxihzHRCES-hU,63
2
+ pulumi_django_azure/django_deployment.py,sha256=yvpOUkcHs37Mb2xTD6BqtB21opxTvFLQzRxMHXTK2aY,23410
3
+ pulumi_django_azure-1.0.4.dist-info/LICENSE,sha256=NX2LN3U319Zaac8b7ZgfNOco_nTBbN531X_M_13niSg,1087
4
+ pulumi_django_azure-1.0.4.dist-info/METADATA,sha256=25RH8tZL2LrhBjuYRngUcRArER9TiAorLEaCJulFhLA,7887
5
+ pulumi_django_azure-1.0.4.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
6
+ pulumi_django_azure-1.0.4.dist-info/top_level.txt,sha256=MNPRJhq-_G8EMCHRkjdcb_xrqzOkmKogXUGV7Ysz3g0,20
7
+ pulumi_django_azure-1.0.4.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- pulumi_django_azure/__init__.py,sha256=tXTvPfr8-Nll5cjMyY9yj_0z_PQ0XAcxihzHRCES-hU,63
2
- pulumi_django_azure/django_deployment.py,sha256=y9xdV2bn2BgjUwt80kJDDpXypWk_qfKbnszlnW-rjd0,23241
3
- pulumi_django_azure-1.0.3.dist-info/LICENSE,sha256=NX2LN3U319Zaac8b7ZgfNOco_nTBbN531X_M_13niSg,1087
4
- pulumi_django_azure-1.0.3.dist-info/METADATA,sha256=WUtNjjn6aHhx2aw3dkBVJzbTWEl8efOlBg9IYuKdsrc,7887
5
- pulumi_django_azure-1.0.3.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
6
- pulumi_django_azure-1.0.3.dist-info/top_level.txt,sha256=MNPRJhq-_G8EMCHRkjdcb_xrqzOkmKogXUGV7Ysz3g0,20
7
- pulumi_django_azure-1.0.3.dist-info/RECORD,,