aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Maiocchi <dmaiocchi@suse.com>2017-11-10 19:57:32 +0100
committerDario Maiocchi <dmaiocchi@suse.com>2017-11-16 11:26:28 +0100
commit9dca6a54d8dec8aa00bb096a8bb84230f72f773b (patch)
tree2d3a6e15dc80b16bf2b9807fec97f26297876c16
parent5ea65823d419c7238d83acd2d7bc9cf85398bdef (diff)
downloadterraform-provider-libvirt-9dca6a54d8dec8aa00bb096a8bb84230f72f773b.tar
terraform-provider-libvirt-9dca6a54d8dec8aa00bb096a8bb84230f72f773b.tar.gz
fix golint on coreos_ingition_def.go
-rw-r--r--libvirt/coreos_ignition_def.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvirt/coreos_ignition_def.go b/libvirt/coreos_ignition_def.go
index 60acc107..4e77b199 100644
--- a/libvirt/coreos_ignition_def.go
+++ b/libvirt/coreos_ignition_def.go
@@ -75,13 +75,13 @@ func (ign *defIgnition) CreateAndUpload(virConn *libvirt.Connect) (string, error
volumeDef.Capacity.Value = size
volumeDef.Target.Format.Type = "raw"
- volumeDefXml, err := xml.Marshal(volumeDef)
+ volumeDefXML, err := xml.Marshal(volumeDef)
if err != nil {
return "", fmt.Errorf("Error serializing libvirt volume: %s", err)
}
// create the volume
- volume, err := pool.StorageVolCreateXML(string(volumeDefXml), 0)
+ volume, err := pool.StorageVolCreateXML(string(volumeDefXML), 0)
if err != nil {
return "", fmt.Errorf("Error creating libvirt volume for Ignition %s: %s", ign.Name, err)
}