Fixed bugs introduced in previous patches.
This commit is contained in:
parent
7f96c90c72
commit
5aae36726f
@ -16,7 +16,6 @@ package container
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
|
||||||
"sync"
|
"sync"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -53,7 +52,6 @@ func NewContainerHandler(name string) (ContainerHandler, error) {
|
|||||||
// Create the ContainerHandler with the first factory that supports it.
|
// Create the ContainerHandler with the first factory that supports it.
|
||||||
for _, factory := range factories {
|
for _, factory := range factories {
|
||||||
if factory.CanHandle(name) {
|
if factory.CanHandle(name) {
|
||||||
log.Printf("Using factory %q for container %q", factory.String(), name)
|
|
||||||
return factory.NewContainerHandler(name)
|
return factory.NewContainerHandler(name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ import "os"
|
|||||||
|
|
||||||
func FileExists(file string) bool {
|
func FileExists(file string) bool {
|
||||||
if _, err := os.Stat(file); err != nil {
|
if _, err := os.Stat(file); err != nil {
|
||||||
return true
|
return false
|
||||||
}
|
}
|
||||||
return false
|
return true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user