You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Instance.AccessIpV6 format in go isn't very useful because it is wrapped with [ and ] values. This means I can't easily drop that value into route53 or other DNS providers without needing to add a fair bit of code to strip them.
Example of what it is today:
[2001:558:fffff:ffff:ffff:ffff:8951]
Instead the AccessIpV6 value would be more useful as:
2001:558:fffff:ffff:ffff:ffff:8951
The text was updated successfully, but these errors were encountered:
In go here is some code that solves the issue - I'm not sure where to insert it since most of the code in the pulumi-openstack library appears to be generated from something.
// This fixes an issue where the IPv6 address is wrapped with [] that Route53
// doesn't like or want.
func fixIpv6Address(in pulumi.StringOutput) pulumi.StringOutput {
return in.ApplyString(func(s string) string {
s = strings.TrimPrefix(s, "[")
s = strings.TrimRight(s, "]")
return s
})
}
The
Instance.AccessIpV6
format in go isn't very useful because it is wrapped with[
and]
values. This means I can't easily drop that value into route53 or other DNS providers without needing to add a fair bit of code to strip them.Example of what it is today:
Instead the AccessIpV6 value would be more useful as:
The text was updated successfully, but these errors were encountered: