Commit 0c8e3085 authored by Julien Muchembled's avatar Julien Muchembled

neoctl: fix tweak command when used without any argument

(cherry picked from commit ba0bc779)
parent 787bd409
......@@ -204,7 +204,7 @@ class TerminalNeoCTL(object):
Parameters: [-n] [node [...]]
-n: dry run
"""
dry_run = params[0] == '-n'
dry_run = params[0] == '-n' if params else False
changed, row_list = self.neoctl.tweakPartitionTable(
map(self.asNode, params[dry_run:]), dry_run)
if changed:
......
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