diff --git a/netshare/drivers/ceph.go b/netshare/drivers/ceph.go index 1af223b..da6c11a 100644 --- a/netshare/drivers/ceph.go +++ b/netshare/drivers/ceph.go @@ -5,8 +5,8 @@ import ( "os" "strings" - log "github.com/sirupsen/logrus" "github.com/docker/go-plugins-helpers/volume" + log "github.com/sirupsen/logrus" ) const ( diff --git a/netshare/drivers/cifs.go b/netshare/drivers/cifs.go index b29b70c..a3cbdb5 100644 --- a/netshare/drivers/cifs.go +++ b/netshare/drivers/cifs.go @@ -6,9 +6,9 @@ import ( "path/filepath" "strings" - log "github.com/sirupsen/logrus" "github.com/dickeyxxx/netrc" "github.com/docker/go-plugins-helpers/volume" + log "github.com/sirupsen/logrus" ) // Constants defining driver paremeters diff --git a/netshare/drivers/driver.go b/netshare/drivers/driver.go index 63aab32..2c6a615 100644 --- a/netshare/drivers/driver.go +++ b/netshare/drivers/driver.go @@ -3,8 +3,8 @@ package drivers import ( "sync" - log "github.com/sirupsen/logrus" "github.com/docker/go-plugins-helpers/volume" + log "github.com/sirupsen/logrus" ) type volumeDriver struct { diff --git a/netshare/drivers/efs.go b/netshare/drivers/efs.go index 6debf1e..a27f6e2 100644 --- a/netshare/drivers/efs.go +++ b/netshare/drivers/efs.go @@ -6,8 +6,8 @@ import ( "regexp" "strings" - log "github.com/sirupsen/logrus" "github.com/docker/go-plugins-helpers/volume" + log "github.com/sirupsen/logrus" ) const ( diff --git a/netshare/drivers/mounts.go b/netshare/drivers/mounts.go index 42ee67f..30781a1 100644 --- a/netshare/drivers/mounts.go +++ b/netshare/drivers/mounts.go @@ -1,14 +1,14 @@ package drivers import ( - "errors" "context" + "errors" "strings" - log "github.com/sirupsen/logrus" - "github.com/docker/go-plugins-helpers/volume" - "github.com/docker/docker/client" "github.com/docker/docker/api/types" + "github.com/docker/docker/client" + "github.com/docker/go-plugins-helpers/volume" + log "github.com/sirupsen/logrus" ) const ( @@ -185,7 +185,7 @@ func checkReferences(volumeName string) int { var counter = 0 ContainerListResponse, err := cli.ContainerList(context.Background(), types.ContainerListOptions{All: true}) // All : true will return the stopped containers as well. if err != nil { - log.Fatal(err,". Use -a flag to setup the DOCKER_API_VERSION. Run 'docker-volume-netshare --help' for usage.") + log.Fatal(err, ". Use -a flag to setup the DOCKER_API_VERSION. Run 'docker-volume-netshare --help' for usage.") } for _, container := range ContainerListResponse { @@ -200,4 +200,4 @@ func checkReferences(volumeName string) int { } } return counter -} \ No newline at end of file +}