Fix rados build, remove uuid dependency
Signed-off-by: Vincent Giersch <vincent.giersch@ovh.net>
This commit is contained in:
parent
3073b1d9e5
commit
3c9a2a9bac
1 changed files with 2 additions and 2 deletions
|
@ -9,12 +9,12 @@ import (
|
||||||
"path"
|
"path"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"code.google.com/p/go-uuid/uuid"
|
|
||||||
log "github.com/Sirupsen/logrus"
|
log "github.com/Sirupsen/logrus"
|
||||||
"github.com/docker/distribution/context"
|
"github.com/docker/distribution/context"
|
||||||
storagedriver "github.com/docker/distribution/registry/storage/driver"
|
storagedriver "github.com/docker/distribution/registry/storage/driver"
|
||||||
"github.com/docker/distribution/registry/storage/driver/base"
|
"github.com/docker/distribution/registry/storage/driver/base"
|
||||||
"github.com/docker/distribution/registry/storage/driver/factory"
|
"github.com/docker/distribution/registry/storage/driver/factory"
|
||||||
|
"github.com/docker/distribution/uuid"
|
||||||
"github.com/noahdesu/go-ceph/rados"
|
"github.com/noahdesu/go-ceph/rados"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -497,7 +497,7 @@ func (d *driver) URLFor(ctx context.Context, path string, options map[string]int
|
||||||
|
|
||||||
// Generate a blob identifier
|
// Generate a blob identifier
|
||||||
func (d *driver) generateOid() string {
|
func (d *driver) generateOid() string {
|
||||||
return objectBlobPrefix + uuid.New()
|
return objectBlobPrefix + uuid.Generate().String()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reference a object and its hierarchy
|
// Reference a object and its hierarchy
|
||||||
|
|
Loading…
Reference in a new issue