shy-architect-77550
06/09/2021, 11:11 PMfoobar = linode.NodeBalancer("foobar",
label="mynodebalancer",
region="us-east",
client_conn_throttle=20)
foofig = linode.NodeBalancerConfig("foofig",
nodebalancer_id=foobar.id,
port=8088,
protocol="http",
check="http",
check_path="/foo",
check_attempts=3,
check_timeout=30,
stickiness="http_cookie",
algorithm="source")
The error is: error: linode:index/nodeBalancerConfig:NodeBalancerConfig resource 'foofig' has a problem: Attribute must be a whole number, got 143111. Examine values at 'NodeBalancerConfig.NodebalancerId'.
red-match-15116
06/09/2021, 11:26 PMfoobar.id
is a string, but nodebalancer_id
expects an int
as the input.
You’ll have to do something like:
foobar = linode.NodeBalancer("foobar",
label="mynodebalancer",
region="us-east",
client_conn_throttle=20)
foofig = linode.NodeBalancerConfig("foofig",
nodebalancer_id=foobar.id.apply(lambda x: int(x)),
port=8088,
protocol="http",
check="http",
check_path="/foo",
check_attempts=3,
check_timeout=30,
stickiness="http_cookie",
algorithm="source")
shy-architect-77550
06/09/2021, 11:30 PM