Skip to content

Commit

Permalink
ci: Go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
smutel committed Apr 27, 2022
1 parent 4f1844d commit 06b9099
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions netbox/resource_netbox_virtualization_vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
}
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 06b9099

Please sign in to comment.