Returning an error is causing test failures in unix volume and hence is still a work in progress.
}
func (s *azureVolumeAdder) Set(containerName string) error {
+ if trashLifetime <= 0 {
+ log.Print("Missing required configuration parameter: trash-lifetime")
+ return ErrNotImplemented
+ }
+
if containerName == "" {
return errors.New("no container name given")
}
f.Close()
ProcMounts = f.Name()
+ trashLifetime = 24 * 60 * 60
resultVols := volumeSet{}
added := (&unixVolumeAdder{&resultVols}).Discover()
f.Close()
ProcMounts = f.Name()
+ trashLifetime = 24 * 60 * 60
resultVols := volumeSet{}
added := (&unixVolumeAdder{&resultVols}).Discover()
if added != 0 || len(resultVols) != 0 {
}
func (s *s3VolumeAdder) Set(bucketName string) error {
+ if trashLifetime <= 0 {
+ log.Print("Missing required configuration parameter: trash-lifetime")
+ return ErrNotImplemented
+ }
if bucketName == "" {
return fmt.Errorf("no container name given")
}
}
func (vs *unixVolumeAdder) Set(value string) error {
+ if trashLifetime <= 0 {
+ log.Print("Missing required configuration parameter: trash-lifetime")
+ //return ErrNotImplemented
+ }
if dirs := strings.Split(value, ","); len(dirs) > 1 {
log.Print("DEPRECATED: using comma-separated volume list.")
for _, dir := range dirs {