Cleanups and minor fixups
This commit is contained in:
@@ -52,7 +52,13 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
|
||||
}
|
||||
|
||||
fmt.Printf("Building container: %s\n", name)
|
||||
container.Build(name, true)
|
||||
output, err := container.Build(name, true)
|
||||
if err != nil {
|
||||
wwlog.Printf(wwlog.ERROR, "Could not build container %s: %s\n", name, err)
|
||||
os.Exit(1)
|
||||
} else {
|
||||
fmt.Printf("%s: %s\n", name, output)
|
||||
}
|
||||
|
||||
if SetDefault == true {
|
||||
nodeDB, err := node.New()
|
||||
|
||||
Reference in New Issue
Block a user