https://pulumi.com logo
c

colossal-boots-62227

11/19/2021, 8:48 AM
I notice that when you export an
int
from a stack and import it in another stack it becomes a
float
which seems wrong, is this expected behaviour?
Specifically this is for the
port
property of
aws.rds.Instance
which I export then import and use via an
apply
Easy to workaround, but if this isn’t expected then I will raise a bug in GH
p

prehistoric-activity-61023

11/19/2021, 9:25 AM
Can you specify what language you use? I guess it’s python but I’d like to confirm that.
c

colossal-boots-62227

11/19/2021, 9:33 AM
Apologies @prehistoric-activity-61023 - yes, Python (3.9)
p

prehistoric-activity-61023

11/19/2021, 9:37 AM
I’ll try to repro it myself but I guess it’s possible that all
int
are converted to
float
in python (I guess it goes through JSON number at some point and that’s the reason).
Anyway, I think you still may report that as an issue cause you were surprised by that behavior and (I think) it’s not documented anywhere.
b

brave-planet-10645

11/19/2021, 10:50 AM
Yeah if you could raise an issue in https://github.com/pulumi/pulumi that would be great thank you
c

colossal-boots-62227

11/19/2021, 10:58 AM
Shall do, thanks both!
@brave-planet-10645 @prehistoric-activity-61023 FYI
b

brave-planet-10645

11/19/2021, 12:29 PM
Thank you