Commit a4d138b7 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

cmdlib: Fix parameters for storage.FileStorage



It wants a list of directories, not a string.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 0e89fc2d
...@@ -741,7 +741,8 @@ def _GetStorageTypeArgs(cfg, storage_type): ...@@ -741,7 +741,8 @@ def _GetStorageTypeArgs(cfg, storage_type):
""" """
# Special case for file storage # Special case for file storage
if storage_type == constants.ST_FILE: if storage_type == constants.ST_FILE:
return [cfg.GetFileStorageDir()] # storage.FileStorage wants a list of storage directories
return [[cfg.GetFileStorageDir()]]
return [] return []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment