pulumi / pulumi-tls-self-signed-cert

Apache License 2.0
1 stars 2 forks source link

Error in example code for the Update Code section #6

Open marmoy opened 1 year ago

marmoy commented 1 year ago

File: themes/default/content/registry/packages/tls-self-signed-cert/_index.md

In the C# example and in the Python example for the update code section (https://www.pulumi.com/registry/packages/tls-self-signed-cert/#update-code) there seem to be errors in the certificate subject.

In the C# example this is the subject: Subject = %!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),

In the Python example, this is the subject: subject=%!v(PANIC=Format method: interface conversion: interface {} is json.RawMessage, not python.PackageInfo))

It should probably be something similar to what is in the examples for the other languages, fx from TypeScript:


    subject: {
        commonName: "example-cert",
        organization: "example-cert LLC",
    },