20318: Add config entry for keep-web cache size.
[arvados.git] / lib / config / deprecated.go
index d5c09d67061115a44cb5c8b5ef2a195fa7652734..d518b3414ad193795179f7e9776bccc26fedc129 100644 (file)
@@ -495,7 +495,7 @@ func (ldr *Loader) loadOldKeepWebConfig(cfg *arvados.Config) error {
                cluster.Collections.WebDAVCache.TTL = *oc.Cache.TTL
        }
        if oc.Cache.MaxCollectionBytes != nil {
-               cluster.Collections.WebDAVCache.MaxCollectionBytes = *oc.Cache.MaxCollectionBytes
+               cluster.Collections.WebDAVCache.MaxCollectionBytes = arvados.ByteSize(*oc.Cache.MaxCollectionBytes)
        }
        if oc.AnonymousTokens != nil {
                if len(*oc.AnonymousTokens) > 0 {