File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ package schemas
5
5
6
6
import (
7
7
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
8
+ "github.com/zededa/zedcloud-api/swagger_models"
8
9
)
9
10
10
11
// Schema for swagger_models.GeoLocation
@@ -127,6 +128,14 @@ var EdgeNodeSchema = map[string]*schema.Schema{
127
128
Optional : true ,
128
129
Description : "Administrative state of device. Required field. " +
129
130
"Valid Values to configure: ADMIN_STATE_ACTIVE, ADMIN_STATE_INACTIVE" ,
131
+ Default : swagger_models .AdminStateADMINSTATECREATED ,
132
+ DiffSuppressFunc : func (k , oldValue , newValue string , d * schema.ResourceData ) bool {
133
+ if oldValue == string (swagger_models .AdminStateADMINSTATEREGISTERED ) &&
134
+ newValue == string (swagger_models .AdminStateADMINSTATEACTIVE ) {
135
+ return true
136
+ }
137
+ return false
138
+ },
130
139
},
131
140
"asset_id" : {
132
141
Type : schema .TypeString ,
You can’t perform that action at this time.
0 commit comments