From cf429d18196c0fe36d398a4f2759f8531ffad72f Mon Sep 17 00:00:00 2001 From: Kushal Das Date: Jul 16 2016 13:33:17 +0000 Subject: Fixes #8. Removes virt resize code. --- diff --git a/src/computer/computer.go b/src/computer/computer.go index 052625c..9a88f49 100644 --- a/src/computer/computer.go +++ b/src/computer/computer.go @@ -36,17 +36,10 @@ func Setup_storage_instance(image, instance_name, path, size, device string) boo fmt.Println("Creating the image.") out, err := system(cmd) if err != nil { + logging.Error.Println(out, err) return false } - fmt.Println(out) - cmd = fmt.Sprintf("virt-resize -v --expand %s %s %s", device, image, filename) - fmt.Println("Time to resize the image.", cmd) - out, err = system(cmd) - if err != nil { - fmt.Println(err) - return false - } - fmt.Println(out) + logging.Info.Println(out) return true }