-
Notifications
You must be signed in to change notification settings - Fork 12
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
Replace stack network type with network ID #85
base: terraform-stacks
Are you sure you want to change the base?
Conversation
Optional: true, | ||
Computed: true, | ||
"network_id": &schema.StringAttribute{ | ||
Required: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this should be required. I believe it only is for chain infrastructure stacks
@@ -44,7 +44,7 @@ type StacksAPIModel struct { | |||
EnvironmentMemberID string `json:"environmentMemberId,omitempty"` | |||
Name string `json:"name"` | |||
Type string `json:"type"` | |||
NetworkType string `json:"networkType,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And if its made optional, this needs to remain omitempty
} | ||
} | ||
|
||
func (api *StacksAPIModel) toData(data *StacksResourceModel) { | ||
data.ID = types.StringValue(api.ID) | ||
data.EnvironmentMemberID = types.StringValue(api.EnvironmentMemberID) | ||
data.NetworkType = types.StringValue(api.NetworkType) | ||
data.NetworkId = types.StringValue(api.NetworkId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't think this line is needed
No description provided.