Commit 7fb1952c authored by Łukasz Nowak's avatar Łukasz Nowak

Fix key selection.

As passed value is list of list it is requires to fetch first element
of first list.
parent e6b144ba
......@@ -560,7 +560,7 @@ class Recipe(BaseSlapRecipe):
# destination
for k, v in known_tid_storage_identifier_dict.copy().iteritems():
# generate unique name for each backup
name = '_'.join(['_'.join([str(q) for q in k[0]]), k[1]])
name = '_'.join(['_'.join([str(q) for q in k[0][0]]), k[1]])
destination = os.path.join(backup_base_path, name)
self._createDirectory(destination)
known_tid_storage_identifier_dict[str(k)] = (v[0], destination, v[1])
......
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