move comments so indentation is more logical

This commit is contained in:
Megan Marsh 2018-02-21 14:57:58 -08:00
parent 3ea7fc9876
commit 33acdbf3bf
1 changed files with 2 additions and 3 deletions

View File

@ -477,13 +477,12 @@ func (s *stepCreateVMX) Run(_ context.Context, state multistep.StateBag) multist
// try and convert the specified network to a device.
device, err := netmap.NameIntoDevice(network)
// success. so we know that it's an actual network type inside netmap.conf
if err == nil {
// success. so we know that it's an actual network type inside netmap.conf
templateData.Network_Type = network
templateData.Network_Device = device
// otherwise, we were unable to find the type, so assume its a custom device.
} else {
// otherwise, we were unable to find the type, so assume its a custom device.
templateData.Network_Type = "custom"
templateData.Network_Device = network
}