diff --git a/catcli/catcli.py b/catcli/catcli.py index e7d9904..7adab01 100755 --- a/catcli/catcli.py +++ b/catcli/catcli.py @@ -144,7 +144,8 @@ def cmd_rename(args, noder, catalog, top): node = next(filter(lambda x: x.name == storage, top.children)) node.name = new if catalog.save(top): - Logger.info('Storage \"{}\" renamed to \"{}\"'.format(storage, new)) + m = 'Storage \"{}\" renamed to \"{}\"'.format(storage, new) + Logger.info(m) else: Logger.err('Storage named \"{}\" does not exist'.format(storage)) return top diff --git a/catcli/utils.py b/catcli/utils.py index 5b0e59c..2c1e23e 100644 --- a/catcli/utils.py +++ b/catcli/utils.py @@ -57,7 +57,7 @@ def ask(question): def edit(string): ''' edit the information with the default EDITOR ''' string = string.encode('utf-8') - EDITOR = os.environ.get('EDITOR','vim') + EDITOR = os.environ.get('EDITOR', 'vim') with tempfile.NamedTemporaryFile(prefix='catcli', suffix='.tmp') as f: f.write(string) f.flush()