Commit ba0bc779 authored by Julien Muchembled's avatar Julien Muchembled

neoctl: fix tweak command when used without any argument

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