Commit 2208c05b authored by Grégory Wisniewski's avatar Grégory Wisniewski

Node state suffix is '_STATE', not '_NODE_STATE', yes this is not consistent

with other enums... 


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@1236 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent baf9c7fd
...@@ -43,8 +43,8 @@ class TerminalNeoCTL(object): ...@@ -43,8 +43,8 @@ class TerminalNeoCTL(object):
# Utility methods (could be functions) # Utility methods (could be functions)
def asNodeState(self, value): def asNodeState(self, value):
if not value.endswith('_NODE_STATE'): if not value.endswith('_STATE'):
value += '_NODE_STATE' value += '_STATE'
return protocol.node_states.getFromStr(value) return protocol.node_states.getFromStr(value)
def asNodeType(self, value): def asNodeType(self, value):
......
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