Lint: E305 expected 2 blank lines after class or function definition, found X
This commit is contained in:
@ -93,6 +93,7 @@ def stopKeepaliveTimer():
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
###############################################################################
|
||||
# PHASE 1a - Configuration parsing
|
||||
###############################################################################
|
||||
@ -272,6 +273,7 @@ def readConfig(pvcnoded_config_file, myhostname):
|
||||
|
||||
return config
|
||||
|
||||
|
||||
# Get the config object from readConfig()
|
||||
config = readConfig(pvcnoded_config_file, myhostname)
|
||||
debug = config['debug']
|
||||
@ -542,6 +544,7 @@ def zk_listener(state):
|
||||
zk_conn.add_listener(zk_listener)
|
||||
break
|
||||
|
||||
|
||||
zk_conn.add_listener(zk_listener)
|
||||
|
||||
###############################################################################
|
||||
@ -621,6 +624,7 @@ def hup(signum='', frame=''):
|
||||
if config['file_logging']:
|
||||
logger.hup()
|
||||
|
||||
|
||||
# Handle signals gracefully
|
||||
signal.signal(signal.SIGTERM, term)
|
||||
signal.signal(signal.SIGINT, term)
|
||||
@ -816,6 +820,7 @@ def update_nodes(new_node_list):
|
||||
for node in d_node:
|
||||
d_node[node].update_node_list(d_node)
|
||||
|
||||
|
||||
# Alias for our local node (passed to network and domain objects)
|
||||
this_node = d_node[myhostname]
|
||||
|
||||
@ -873,6 +878,7 @@ def update_primary(new_primary, stat, event=''):
|
||||
for node in d_node:
|
||||
d_node[node].primary_node = new_primary
|
||||
|
||||
|
||||
if enable_networking:
|
||||
# Network objects
|
||||
@zk_conn.ChildrenWatch('/networks')
|
||||
@ -1292,6 +1298,7 @@ def collect_ceph_stats(queue):
|
||||
if debug:
|
||||
logger.out("Thread finished", state='d', prefix='ceph-thread')
|
||||
|
||||
|
||||
# State table for pretty stats
|
||||
libvirt_vm_states = {
|
||||
0: "NOSTATE",
|
||||
@ -1641,6 +1648,7 @@ def node_keepalive():
|
||||
if debug:
|
||||
logger.out("Keepalive finished", state='d', prefix='main-thread')
|
||||
|
||||
|
||||
# Start keepalive thread
|
||||
update_timer = startKeepaliveTimer()
|
||||
|
||||
|
@ -122,6 +122,7 @@ def add_lease(zk_conn, zk_leases_key, expiry, macaddr, ipaddr, hostname, clienti
|
||||
def del_lease(zk_conn, zk_leases_key, macaddr, expiry):
|
||||
zk_conn.delete('{}/{}'.format(zk_leases_key, macaddr), recursive=True)
|
||||
|
||||
|
||||
#
|
||||
# Instantiate the parser
|
||||
#
|
||||
|
Reference in New Issue
Block a user