Skip to content
Open
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
10 changes: 5 additions & 5 deletions content/docs/deployments/concepts/webhooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
```

Expand Down
3 changes: 2 additions & 1 deletion content/docs/iac/concepts/functions/resource-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
...
```

</pulumi-choosable>
Expand Down
4 changes: 2 additions & 2 deletions content/docs/iac/get-started/gcp/create-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)
Expand Down
2 changes: 1 addition & 1 deletion content/docs/iac/get-started/terraform/convert-hcl.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading