This website requires JavaScript.
Explore
ben
ben/packages
Help
Sign In
mirrors
/
pulumi
mirror of
https://github.com/pulumi/pulumi.git
Watch
0
Star
0
Fork
You've already forked pulumi
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
dixler-ignore-bridge
Branches
Tags
No results found.
pulumi
/
pkg
/
codegen
/
testing
/
test
/
testdata
/
random-pet-pp
/
random-pet.pp
3 lines
77 B
Puppet
Raw
Permalink
Normal View
History
Unescape
Escape
[programgen/go] Don't change imported resource names (#8353) When importing a resource in Go, we change resource names with hyphens to snake_case. This happens because we introduced a change that converts the resource name to a valid Go identifier so it can be used as a local variable. But we were also using this converted name as the string resource name, which causes problems with import: the imported resource in the state file has the original resource name, but the generated program uses the converted name, causing Pulumi to delete and recreate the resource when adopting the generated import code. This change fixes the issue by maintaining the original resource name, and only using the converted name for variables.
2021-11-04 16:28:48 +00:00
resource
random
-
pet
"random:index/randomPet:RandomPet"
{
[Go program gen]: namespaceless resources (#4915)
2020-06-30 01:10:34 +00:00
prefix
=
"doggo"
}