diff --git a/content/docs/deployments/concepts/webhooks.md b/content/docs/deployments/concepts/webhooks.md index 82a65a37f47b..0d2b1ac9aefe 100644 --- a/content/docs/deployments/concepts/webhooks.md +++ b/content/docs/deployments/concepts/webhooks.md @@ -73,11 +73,11 @@ const webhook = new pulumiservice.Webhook("example-webhook", { ```python import pulumi import pulumi_pulumiservice -webhook = pulumi_service.Webhook("example-webhook", - active: True, - display_name: "webhook example", - organization_name: "example", - payload_url: "https://example.com/webhook", +webhook = pulumi_pulumiservice.Webhook("example-webhook", + active=True, + display_name="webhook example", + organization_name="example", + payload_url="https://example.com/webhook", ) ``` diff --git a/content/docs/iac/concepts/functions/resource-methods.md b/content/docs/iac/concepts/functions/resource-methods.md index cad2fe9ade04..d31b26f8290b 100644 --- a/content/docs/iac/concepts/functions/resource-methods.md +++ b/content/docs/iac/concepts/functions/resource-methods.md @@ -50,7 +50,8 @@ func (r *Cluster) GetKubeconfig(ctx *Context, args *ClusterGetKubeconfigArgs) (p ```python def get_kubeconfig(self, profile_name: Optional[pulumi.Input[str]] = None, - role_arn: Optional[pulumi.Input[str]] = None) -> Output[str] + role_arn: Optional[pulumi.Input[str]] = None) -> Output[str]: + ... ``` diff --git a/content/docs/iac/get-started/gcp/create-component.md b/content/docs/iac/get-started/gcp/create-component.md index d79f8e3bb13a..0ed0876cdef4 100644 --- a/content/docs/iac/get-started/gcp/create-component.md +++ b/content/docs/iac/get-started/gcp/create-component.md @@ -393,9 +393,9 @@ class GcpStorageWebsite(pulumi.ComponentResource): bucket = storage.Bucket( 'my-bucket', location="US", - website=\{ + website={ "main_page_suffix": "index.html" - \}, + }, uniform_bucket_level_access=True, opts=pulumi.ResourceOptions(parent=self), ) diff --git a/content/docs/iac/get-started/terraform/convert-hcl.md b/content/docs/iac/get-started/terraform/convert-hcl.md index e52beefb24c0..231dd2b0d96d 100644 --- a/content/docs/iac/get-started/terraform/convert-hcl.md +++ b/content/docs/iac/get-started/terraform/convert-hcl.md @@ -1151,7 +1151,7 @@ resources: ami: ${amazonLinux.id} instanceType: ${instanceType} subnetId: ${public.id} - vpcSecurityGroupIds: [${web-sg.id}] + vpcSecurityGroupIds: ["${web-sg.id}"] userData: | #!/bin/bash yum update -y diff --git a/content/docs/iac/languages-sdks/python/python-blocking-async.md b/content/docs/iac/languages-sdks/python/python-blocking-async.md index 477991355f7d..92aeceba1ea2 100644 --- a/content/docs/iac/languages-sdks/python/python-blocking-async.md +++ b/content/docs/iac/languages-sdks/python/python-blocking-async.md @@ -147,14 +147,14 @@ async def async_operation(foo: str) -> str: """ proc = await asyncio.create_subprocess_shell( f'my-cli {shlex.quote(foo)}', - stdout=asyncio.subprocess.PIPE + stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE) stdout, stderr = await proc.communicate() - if proc.returncode is not 0: + if proc.returncode != 0: raise Exception(f'my-cli returned {proc.returncode}: {stderr.decode()}') - return stdout.decode + return stdout.decode() # Calling an async function directly (without the await keyword) returns a # coroutine