-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type mismatch between server.id and serverID #63
Comments
Note that you can convert the string to an int with: That said - ideally you should not need this ceremony. Pulumi |
I'll get a fix tested this morning for this Paul |
Hm, I tried If you leave a hint how to install your patch (once it is there), I 'd be happy to provide end-user feedback. Edit: being consistent sounds good. Hetzer seems to use an int in their API, so the question is: do you want to be string consistent in the Pulumi API or do you want to expose the Hetzer internals? There is a good reason for both ways. |
@stack72 Any update on this? Don't want to be rude, but pretty much everything / basic functionality relies on the PS: So far I found a resource that works, |
@lukehoban @stack72 Do you have any updates or wold you accept a PR for this? |
Pulumi might be working good with the largest cloud provider, but I guess Hetzner is absolutely not on the priority list (check commit history of this repo). |
You're right, by the look of it this isn't a priority. |
Basically anything with Id in the hcloud provider exhibits the same behaviour: Return IDs as Strings and expect Numbers as input. |
This is still broken and/or wrongly documented. |
@AaronFriel Do you have a link to the upstream issue that needs fixing? :) |
Is there an update to this one or a workaround? |
Output Server.id returns a string but Input Rdns.serverId expects a number (several other places that expect a serverId as well, also want a number).
Expected behavior
Passing in the server.id should work without conversion:
According to https://docs.hetzner.cloud/#servers-get-a-server I believe that ID should be an int/number?
Current behavior
Compile error.
Steps to reproduce
Run the Typescript example from the official docs: https://www.pulumi.com/docs/reference/pkg/hcloud/rdns/#inputs
Affected feature
Just installed
Pulumi 3.2.1
on MacOS with@pulumi/hcloud 1.0.0
, so I assume latest lib versions.The text was updated successfully, but these errors were encountered: