mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 14:26:23 -04:00
terraform: add subnet for OpenStack LBs
This commit is contained in:
parent
9d164de18b
commit
1e987f6a85
8 changed files with 75 additions and 10 deletions
|
@ -349,8 +349,18 @@ func (c *Client) ShowInfrastructure(ctx context.Context, provider cloudprovider.
|
|||
if !ok {
|
||||
return state.Infrastructure{}, errors.New("invalid type in network_id output: not a string")
|
||||
}
|
||||
lbSubnetworkIDOutput, ok := tfState.Values.Outputs["lb_subnetwork_id"]
|
||||
if !ok {
|
||||
return state.Infrastructure{}, errors.New("no lb_subnetwork_id output found")
|
||||
}
|
||||
lbSubnetworkID, ok := lbSubnetworkIDOutput.Value.(string)
|
||||
if !ok {
|
||||
return state.Infrastructure{}, errors.New("invalid type in lb_subnetwork_id output: not a string")
|
||||
}
|
||||
|
||||
res.OpenStack = &state.OpenStack{
|
||||
NetworkID: networkID,
|
||||
SubnetID: lbSubnetworkID,
|
||||
}
|
||||
}
|
||||
return res, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue