From 760d35e98a59910c3d0332663ce969363d95dbaa Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 5 Jul 2014 00:28:37 +0400 Subject: [PATCH] Parse new storage name and set parameters --- convert_st.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/convert_st.py b/convert_st.py index 89bd8ab..c8a6a24 100755 --- a/convert_st.py +++ b/convert_st.py @@ -30,10 +30,14 @@ def run(): sys.stderr.write("Usage: convert_st [-s] new_storage\n") sys.exit(1) + from bkmk_objects import parse_params, set_params from storage import storage, import_storage + storage = storage() - new_storage = import_storage(args[0]) + storage_name, storage_params = parse_params(args[0]) + new_storage = import_storage(storage_name) + set_params(new_storage, storage_params) new_storage = new_storage() if report_stats: -- 2.39.5