Auto-creation of non-existing host directories
is no longer deprecated (9d5c26bed2ac287542e176d9149250927876e3f5),
so this warning is no longer relevant.
This removes the deprecation warning.
Also removes the "system" package here, because it's only used
on non-Windows, so basically just called os.MkdirAll()
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -5,9 +5,6 @@ import ( |
| 5 | 5 |
"os" |
| 6 | 6 |
"runtime" |
| 7 | 7 |
"strings" |
| 8 |
- |
|
| 9 |
- "github.com/Sirupsen/logrus" |
|
| 10 |
- "github.com/docker/docker/pkg/system" |
|
| 11 | 8 |
) |
| 12 | 9 |
|
| 13 | 10 |
// DefaultDriverName is the driver name used for the driver |
| ... | ... |
@@ -79,8 +76,7 @@ func (m *MountPoint) Setup() (string, error) {
|
| 79 | 79 |
return "", err |
| 80 | 80 |
} |
| 81 | 81 |
if runtime.GOOS != "windows" { // Windows does not have deprecation issues here
|
| 82 |
- logrus.Warnf("Auto-creating non-existent volume host path %s, this is deprecated and will be removed soon", m.Source)
|
|
| 83 |
- if err := system.MkdirAll(m.Source, 0755); err != nil {
|
|
| 82 |
+ if err := os.MkdirAll(m.Source, 0755); err != nil {
|
|
| 84 | 83 |
return "", err |
| 85 | 84 |
} |
| 86 | 85 |
} |