pull/19/head
deadc0de6 3 years ago
parent 031cc1a331
commit 5657a0eeb4

@ -210,7 +210,7 @@ def cmd_edit(args, noder, catalog, top):
if not attr:
attr = ''
new = edit(attr)
node.attr = noder.clean_storage_attr(new)
node.attr = noder.format_storage_attr(new)
if catalog.save(top):
Logger.info('Storage \"{}\" edited'.format(storage))
else:

@ -148,7 +148,10 @@ class Noder:
'''format the storage attr for saving'''
if not attr:
return ''
return ', '.join(attr)
if type(attr) is list:
return ', '.join(attr)
attr = attr.rstrip()
return attr
def set_hashing(self, val):
'''hash files when indexing'''

Loading…
Cancel
Save