From 06b909911bb6bbbae669f28a38d4883ec941a9c6 Mon Sep 17 00:00:00 2001 From: smutel Date: Wed, 27 Apr 2022 15:56:14 +0000 Subject: [PATCH] ci: Go fmt --- netbox/resource_netbox_virtualization_vm.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/netbox/resource_netbox_virtualization_vm.go b/netbox/resource_netbox_virtualization_vm.go index ebaaf85e2..58e2a5db1 100644 --- a/netbox/resource_netbox_virtualization_vm.go +++ b/netbox/resource_netbox_virtualization_vm.go @@ -154,12 +154,12 @@ func resourceNetboxVirtualizationVMCreate(d *schema.ResourceData, } newResource := &models.WritableVirtualMachineWithConfigContext{ - Cluster: &clusterID, - Comments: comments, - CustomFields: &customFields, - Name: &name, - Status: status, - Tags: convertTagsToNestedTags(tags), + Cluster: &clusterID, + Comments: comments, + CustomFields: &customFields, + Name: &name, + Status: status, + Tags: convertTagsToNestedTags(tags), } if disk != 0 { @@ -173,7 +173,7 @@ func resourceNetboxVirtualizationVMCreate(d *schema.ResourceData, if localContextData != "" { var localContextDataMap map[string]*interface{} if err := json.Unmarshal([]byte(localContextData), &localContextDataMap); err != nil { - return err + return err } newResource.LocalContextData = localContextDataMap } @@ -259,7 +259,7 @@ func resourceNetboxVirtualizationVMRead(d *schema.ResourceData, return err } } else { - d.Set("local_context_data", ""); + d.Set("local_context_data", "") } if err = d.Set("memory", resource.Memory); err != nil { @@ -356,7 +356,7 @@ func resourceNetboxVirtualizationVMUpdate(d *schema.ResourceData, if localContextData == "" { localContextDataMap = nil } else if err := json.Unmarshal([]byte(localContextData), &localContextDataMap); err != nil { - return err + return err } params.LocalContextData = localContextDataMap }