Skip to content

Commit a8bfdaf

Browse files
feat Add ionos-config to node templates
1 parent fc5a835 commit a8bfdaf

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

rancher2/schema_machine_config_v2_ionoscloud.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ func machineConfigV2IonoscloudFields() map[string]*schema.Schema {
190190
"datacenter_name": {
191191
Type: schema.TypeString,
192192
Optional: true,
193-
Default: "docker-machine-data-center",
193+
Default: nil,
194194
Description: "Ionos Cloud Virtual Data Center Name",
195195
Computed: true,
196196
},
@@ -202,7 +202,7 @@ func machineConfigV2IonoscloudFields() map[string]*schema.Schema {
202202
"lan_name": {
203203
Type: schema.TypeString,
204204
Optional: true,
205-
Default: "docker-machine-lan",
205+
Default: nil,
206206
Description: "Ionos Cloud LAN Name",
207207
Computed: true,
208208
},

rancher2/structure_machine_config_v2.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ func expandMachineConfigV2(in *schema.ResourceData) *MachineConfigV2 {
166166
}
167167
if v, ok := in.Get("nutanix_config").([]interface{}); ok && len(v) > 0 {
168168
obj.NutanixConfig = expandMachineConfigV2Nutanix(v, obj)
169+
}
169170
if v, ok := in.Get("ionoscloud_config").([]interface{}); ok && len(v) > 0 {
170171
obj.IonoscloudConfig = expandMachineConfigV2Ionoscloud(v, obj)
171172
}

0 commit comments

Comments
 (0)