Loading bin/cc-node +4 −2 Original line number Diff line number Diff line Loading @@ -10,6 +10,7 @@ import logging import logging.handlers import signal import threading import socket from time import sleep try: Loading @@ -24,7 +25,7 @@ DEFAULT_CONFIG_FILE = '/etc/cc-node.conf' DEFAULT_PID_FILE = '/var/run/cc-node.pid' DEFAULT_CONFIGURATION = { 'address': None, 'login': None, 'login': '$HOSTNAME', 'password': None, 'port': 1984, 'verbosity': 0, Loading Loading @@ -65,9 +66,10 @@ def run_node(options): logging.info('Connected to server %s' % options['address']) def authentication(): login = options['login'].replace('$HOSTNAME', socket.gethostname()) while node.manager.is_running(): try: node.authentify(options['login'], options['password']) node.authentify(login, options['password']) except RpcError as error: logging.critical('Authentication error: %s' % error) sleep(2) Loading Loading
bin/cc-node +4 −2 Original line number Diff line number Diff line Loading @@ -10,6 +10,7 @@ import logging import logging.handlers import signal import threading import socket from time import sleep try: Loading @@ -24,7 +25,7 @@ DEFAULT_CONFIG_FILE = '/etc/cc-node.conf' DEFAULT_PID_FILE = '/var/run/cc-node.pid' DEFAULT_CONFIGURATION = { 'address': None, 'login': None, 'login': '$HOSTNAME', 'password': None, 'port': 1984, 'verbosity': 0, Loading Loading @@ -65,9 +66,10 @@ def run_node(options): logging.info('Connected to server %s' % options['address']) def authentication(): login = options['login'].replace('$HOSTNAME', socket.gethostname()) while node.manager.is_running(): try: node.authentify(options['login'], options['password']) node.authentify(login, options['password']) except RpcError as error: logging.critical('Authentication error: %s' % error) sleep(2) Loading