Commit a22440f1 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Use bool() instead of not(not())

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2058 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent b283d492
...@@ -128,7 +128,7 @@ class TerminalNeoCTL(object): ...@@ -128,7 +128,7 @@ class TerminalNeoCTL(object):
node = self.asNode(params[0]) node = self.asNode(params[0])
state = self.asNodeState(params[1]) state = self.asNodeState(params[1])
if len(params) == 3: if len(params) == 3:
update_partition_table = not(not(int(params[2]))) update_partition_table = bool(int(params[2]))
else: else:
update_partition_table = False update_partition_table = False
return self.neoctl.setNodeState(node, state, return self.neoctl.setNodeState(node, state,
......
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