@@ -345,7 +345,7 @@ func dataSourceHostRead(ctx context.Context, d *schema.ResourceData, meta interf
345345 _ = d .Set ("network_pool" , networkPool )
346346
347347 // CPU information.
348- cpuCores := []map [string ]interface {} {}
348+ var cpuCores []map [string ]interface {}
349349 for _ , core := range * host .Cpu .CpuCores {
350350 cpuCore := map [string ]interface {}{
351351 "frequency_mhz" : core .FrequencyMHz ,
@@ -379,7 +379,7 @@ func dataSourceHostRead(ctx context.Context, d *schema.ResourceData, meta interf
379379 _ = d .Set ("compatible_storage_type" , host .CompatibleStorageType )
380380
381381 // Storage information.
382- disks := []map [string ]interface {} {}
382+ var disks []map [string ]interface {}
383383 for _ , disk := range * host .Storage .Disks {
384384 diskInfo := map [string ]interface {}{
385385 "capacity_mb" : disk .CapacityMB ,
@@ -400,7 +400,7 @@ func dataSourceHostRead(ctx context.Context, d *schema.ResourceData, meta interf
400400 _ = d .Set ("storage" , storage )
401401
402402 // Physical NICs information.
403- physicalNics := []map [string ]interface {} {}
403+ var physicalNics []map [string ]interface {}
404404 for _ , nic := range * host .PhysicalNics {
405405 physicalNic := map [string ]interface {}{
406406 "device_name" : nic .DeviceName ,
@@ -413,7 +413,7 @@ func dataSourceHostRead(ctx context.Context, d *schema.ResourceData, meta interf
413413 _ = d .Set ("physical_nics" , physicalNics )
414414
415415 // IP addresses information.
416- ipAddresses := []map [string ]interface {} {}
416+ var ipAddresses []map [string ]interface {}
417417 for _ , ip := range * host .IpAddresses {
418418 ipAddress := map [string ]interface {}{
419419 "ip_address" : ip .IpAddress ,
0 commit comments