Fixed bugs introduced in previous patches.

This commit is contained in:
Vishnu Kannan 2014-07-21 05:49:51 +00:00
parent 7f96c90c72
commit 5aae36726f
2 changed files with 2 additions and 4 deletions

View File

@ -16,7 +16,6 @@ package container
import (
"fmt"
"log"
"sync"
)
@ -53,7 +52,6 @@ func NewContainerHandler(name string) (ContainerHandler, error) {
// Create the ContainerHandler with the first factory that supports it.
for _, factory := range factories {
if factory.CanHandle(name) {
log.Printf("Using factory %q for container %q", factory.String(), name)
return factory.NewContainerHandler(name)
}
}

View File

@ -4,7 +4,7 @@ import "os"
func FileExists(file string) bool {
if _, err := os.Stat(file); err != nil {
return true
return false
}
return false
return true
}