pulumi / pulumi-pulumiservice

https://pulumi.com
Apache License 2.0
13 stars 7 forks source link

Panic when managing environments resources after updating pulumi-pulumiservice #400

Closed seanyeh closed 2 months ago

seanyeh commented 2 months ago

What happened?

After updating psp, I tried to use pulumi to manage environments resources I had previously created, and ran into this panic:

 panic: interface conversion: interface {} is *asset.Asset, not string
    goroutine 45 [running]:
    github.com/pulumi/pulumi/sdk/v3/go/common/resource.PropertyValue.StringValue(...)
        /Users/sean/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.115.3-0.20240507143413-cffdfd1fa489/go/common/resource/properties.go:451
    github.com/pulumi/pulumi-pulumiservice/provider/pkg/provider.ToPulumiServiceEnvironmentInput(0x2?)
        /Users/sean/go/src/github.com/pulumi/pulumi-pulumiservice/provider/pkg/provider/environment.go:63 +0x1d0

Example

Reproduction steps:

Output of pulumi about

CLI
Version      3.129.1-dev.0
Go Version   go1.22.3
Go Compiler  gc

Plugins
KIND      NAME           VERSION
resource  aws            5.43.0
resource  docker         3.6.1
language  nodejs         unknown
resource  pulumiservice  0.24.1-alpha.1724872829+e960fba7

Host
OS       darwin
Version  14.3
Arch     arm64

This project is written in nodejs: executable='/Users/sean/.nvm/versions/node/v18.20.2/bin/node' version='v18.20.2'

Current Stack: psp/environments/dev

Found no resources associated with psp/dev

Found no pending operations associated with psp/dev

Backend
Name           http://localhost:8080
URL            http://localhost:4200/psp
User           psp
Organizations  psp, psp-org, service-provider-test-org
Token type     personal

Dependencies:
NAME            VERSION
@pulumi/pulumi  3.130.0
@pulumi/aws     5.43.0
@pulumi/awsx    0.40.1
@types/node     14.18.63

Pulumi locates its logs in /var/folders/vx/cthryj9n7lzb_st_t3hqtjj00000gn/T/ by default

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).