Commit 7dba2b82 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

in _generatePerNodeNumberId, use node number that is visible in LoadBalancing tab.

and use 0 for other nodes instead of magic number 111.
parent 357cf1b3
...@@ -222,10 +222,10 @@ class FolderMixIn(ExtensionClass.Base): ...@@ -222,10 +222,10 @@ class FolderMixIn(ExtensionClass.Base):
node_list = list(activity_tool.getNodeList()) node_list = list(activity_tool.getNodeList())
current_node = activity_tool.getCurrentNode() current_node = activity_tool.getCurrentNode()
try: try:
node_number = node_list.index(current_node) node_number = node_list.index(current_node) + 1
except ValueError: except ValueError:
# Not a processing node # Not a processing node
node_number = 111 node_number = 0
return "%03d-%s" %(node_number, self._generateRandomId()) return "%03d-%s" %(node_number, self._generateRandomId())
# Automatic ID Generation method # Automatic ID Generation method
......
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