Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
712f8edf9e |
@@ -1,4 +1,4 @@
|
||||
## Version 4.3.3
|
||||
## Version 4.3.4
|
||||
|
||||
## Bugfixes
|
||||
- Fixed bootdisk flattens: porvider flattens first found disk with type "B" as boot_disk
|
||||
- Fixed bug with resource decort_cb_extnet: extnet did not switct status to "ENABLED" if field enable=true while resource create.
|
||||
5
Makefile
5
Makefile
@@ -7,11 +7,8 @@ ZIPDIR = ./zip
|
||||
BINARY=${NAME}
|
||||
WORKPATH= ./examples/terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAMESPACE}/${VERSION}/${OS_ARCH}
|
||||
MAINPATH = ./cmd/decort/
|
||||
VERSION=4.3.3
|
||||
VERSION=4.3.4
|
||||
OS_ARCH=$(shell go env GOHOSTOS)_$(shell go env GOHOSTARCH)
|
||||
# OS_ARCH=darwin_arm64
|
||||
# OS_ARCH=windows_amd64
|
||||
# OS_ARCH=linux_amd64
|
||||
|
||||
FILES = ${BINARY}_${VERSION}_darwin_amd64\
|
||||
${BINARY}_${VERSION}_darwin_arm64\
|
||||
|
||||
@@ -142,6 +142,17 @@ func resourceExtnetCreate(ctx context.Context, d *schema.ResourceData, m interfa
|
||||
}
|
||||
}
|
||||
|
||||
if d.Get("enable").(bool) {
|
||||
log.Debugf("resourceExtnetCreate: trying to enable extnet with ID %d", netID)
|
||||
_, err := c.CloudBroker().ExtNet().Enable(ctx, extnet.EnableRequest{
|
||||
NetID: netID,
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
return diag.FromErr(err)
|
||||
}
|
||||
}
|
||||
|
||||
return resourceExtnetRead(ctx, d, m)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user